From: Angus Dorbie (dorbie++at++sgi.com)
Date: 04/20/2000 13:18:30
Try changing the fog type.
CHeers,ANgus.
jason allen bryan wrote:
>
> this is probably a really simple problem, but i'll ask anyway:
> we're implementing fog in our environment, and the following code works as
> expected on an Onyx2 (i.e. we see fog), but on our Octane there is no fog.
> i expect there is some flag or parameter that needs a different value
> on the Octane, but so far i've had no luck.
> please help!
>
> fog->setFogType (PFFOG_PIX_EXP2);
> fog->setRange (0.0, 1000.0);
> fog->setColor (1.0, 1.0, 1.0);
> gstate->setMode(PFSTATE_ENFOG, PFFOG_ON);
> gstate->setAttr(PFSTATE_FOG, fog);
> scene->setGState(gstate);
>
> where fog is of type pfFog,
> gstate is of type pfGeoState,
> and scene is of type pfScene
>
> -----------------------------------------------------------------------
> List Archives, FAQ, FTP: http://www.sgi.com/software/performer/
> Submissions: info-performer++at++sgi.com
> Admin. requests: info-performer-request++at++sgi.com
-- For Performer+OpenGL tutorials http://www.dorbie.com/"In the middle of difficulty lies opportunity." --Albert Einstein
This archive was generated by hypermail 2b29 : Thu Apr 20 2000 - 13:18:51 PDT