Re: fog color

New Message Reply Date view Thread view Subject view Author view

Steve Baker (sbaker++at++link.com)
Wed, 18 Mar 1998 07:32:40 -0600 (CST)


On Mon, 16 Mar 1998 crakrjak++at++xerxesinc.com wrote:

>
> i call this in my X input event loop when 't' is pressed:
>
> if (fogColor)
> {
> pfFogColor (shared->fog, 1.0, 1.0, 1.0);
> fogColor = 0;
> printf("white\n");
> } else
> {
> pfFogColor (shared->fog, 1.0, 0.0, 0.0);
> fogColor = 1;
> printf("red\n");
> }
>
> but this doesnt work, just calling pfFogColor(); doesnt change the color
> of the fog, the fog stays to the original color, maybe i have to change
> the color in a certain callback? or call another function after changing
> its color, i tried calling
  
I call pfFogColor in my DRAW callback (sometime before calling pfDraw) and
it works OK.

I found that if I called it in APP (the most obvious place) then the fog
changes didn't always happen at the same instant in all my channels - so
I moved it into DRAW.

> pfApplyFog(shared->fog);
  
I don't do that. I think your fog will get applied for you when the first
GeoSet/GeoState that needs it is drawn.

Steve Baker 817-619-8776 (Vox/Vox-Mail)
Raytheon Systems Inc. 817-619-4028 (Fax)
2200 Arlington Downs Road SBaker++at++link.com (eMail)
Arlington, Texas. TX 76005-6171 SJBaker1++at++airmail.net (Personal eMail)
http://www.hti.com http://web2.airmail.net/sjbaker1 (personal)

** Beware of Geeks bearing GIF's. **

=======================================================================
List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/
            Submissions: info-performer++at++sgi.com
        Admin. requests: info-performer-request++at++sgi.com


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:57:02 PDT

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