Re: fog color

New Message Reply Date view Thread view Subject view Author view

crakrjak++at++xerxesinc.com
Mon, 16 Mar 1998 18:49:33 -0500 (EST)


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

pfApplyFog(shared->fog);

after setting the color but it still dont work, so if someone understand
what im doing wrong please let me know.

On Tue, 17 Mar 1998, Angus Dorbie wrote:

> crakrjak++at++xerxesinc.com wrote:
> >
> > i'd like to know if its possible to change the fog color while my program
> > is running, and if possible where can i change the color of the fog. Your
> > help would be appreciated, thank you.
>
> pfFog::setColor
>
> This is in the manual, which should be the first place you look.
>
> Cheers,Angus.
>
> --
> "Only the mediocre are always at their best." -- Jean Giraudoux
>
> For advanced 3D graphics Performer + OpenGL based examples and tutors:
> http://www.dorbie.com/
>

=======================================================================
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.