From: MLM Veraart (veraart++at++fel.tno.nl)
Date: 10/31/2000 01:27:35
Hi Roy,
Is the value of fog_range_max equal to your far clipping range?
It has no meaning of having a far clip range that is greater than
the distance of complete fog.
Mario
Roy Ruddle wrote:
>
> Hi there,
>
> I'm trying to implement a simple linear fog model on our Crimson RE,
> running Irix 6.2/Performer 2.2/Open GL. The application is for
> navigating a building (i.e., Z = 0 is the plane of the floor, and a
> user's eyepoint moves in the Z=1.65 m plane). The relevant code is:
>
> pfEarthSky *esky = new pfEarthSky;
> esky->setMode(PFES_BUFFER_CLEAR, PFES_SKY_GRND);
> esky->setAttr(PFES_GRND_HT, -1.0 );
> pfFog *fog = new pfFog;
> fog->setFogType( PFFOG_VTX_LIN );
> fog->setColor( 1.0, 1.0, 1.0 );
> fog->setRange( fog_range_min, fog_range_max );
> esky->setFog( PFES_GENERAL, fog );
>
> This works fine on a MaxImpact running irix 6.5 but, on the Crimson, I can
> clearly see my scene beyond the fog_range_max distance. Any thoughts? Have
> I missed something out in my fog/earth-sky calls, meaning that it's pure
> luck the code works on the Impact?
This archive was generated by hypermail 2b29 : Tue Oct 31 2000 - 01:29:07 PST