Re: Pre/Post Draw Callbacks, dissapointment!

New Message Reply Date view Thread view Subject view Author view

Lance Marrou (marrou++at++vsl.ist.ucf.edu)
Tue, 29 Aug 1995 13:09:57 -0400


On Aug 28, 4:04pm, Torres Mario 678-3280 AMSRL-BE-M wrote:
> Subject: Pre/Post Draw Callbacks, dissapointment!
>
> On the recommendation of a few good programmers from this list, I tried
> to illuminate a helicopter by dimming the pfLightColor of the sun on the
> perfly program through the use of PreDraw and PostDraw functions. I am
> very dissapointed because through this functions I can't even turn off
> the light for the helicopter in the PreDraw and then back ON in the
> PostDraw. I've set it up in the following manner if anyone cares to comment:

<snip>

>
> The apache model is a multigen model, and I would expect that the model
> would be dark as if with no light and then the rest of the terrain would
> appear with the light.
>
> Also, is updating the apache DCS in the preDraw function a good or bad
> practice?
>
>-- End of excerpt from Torres Mario 678-3280 AMSRL-BE-M

You cannot change the scene geometry in the draw process so, no, it is not good
practice to attempt it. This should mean that the calls to pfLightAmbient() et
al, do not work in either the draw or cull processes, though if others have
suggested it, it might still work. However, pfEnable() does work. So you
could use pfGetEnable in preDraw, followed by pfDisable, then pfEnable or
pfDisable in the postDraw.

-- 
______________________________________________________________________________
           /\    ______  /\____ ______ ______   E-mail: marrou++at++vsl.ist.ucf.edu
Visual    / /   / _   / / __  // ____// ____/               VSL: (407)658-5073
Systems  / /__ / /_/ / / / / // /___ / __/_  R. Marrou      Fax: (407)658-5059
Lab     /____//____/\\/_/ /_//_____//_____/ http://www.vsl.ist.ucf.edu/~marrou
"Reap the whirlwind."                      "We don't need no thought control."

New Message Reply Date view Thread view Subject view Author view

This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:51:50 PDT

This message has been cleansed for anti-spam protection. Replace '++at++' in any mail addresses with the '@' symbol.