From: Radomir Mech (rmech++at++engr.sgi.com)
Date: 08/21/2001 09:52:01
Andreas Ekstrand wrote:
>
> Hi again!
>
> Do you mean that layered fog can be done with pfVolFog OR with
> pfEarthSky? In that case, is the layered fog in pfEarthSky only
> available in 2.4?
>
Yes, layered fog can be done with both, but pfVolFog version has more controls.
The fog in pfEarthSky is available also in earlier versions, pfVolFog is
introduced in 2.4.
> Isn't there any way to get this behaviour without multipass rendering?
> Actually I don't need certain layers. I just need to control the glFog
> with more that just the z value. Isn't it possible to give the glFog a
> function that depends on both z and (h,p,r) to calculate its fog?
>
No, glFog depends only on z. There is an extension glFogCoord1fEXT, supported on
NVidia and ATI chips, I believe, that allows you to specify z per vertex. You
would have to compute the z value yourself or use a vertex program to do it.
Then you don't have to draw the scene twice. This functionality is not exposed
in performer.
> Regards,
> Andreas
>
This archive was generated by hypermail 2b29 : Tue Aug 21 2001 - 09:52:03 PDT