MLM Veraart (Veraart++at++fel.tno.nl)
Tue, 25 May 1999 16:56:38 +0200
I want to apply a fog on the terrain geometry, and not on the
sky/horizon/ground that is drawn with pfEarthSky.
If I attach a pfFog to the pfEarthSky the sky is filled with the fog
color too. That is not what I want.
I tried to apply the pfFog in the channel draw callback
channel->clear(); // apply earthsky
shared->fog->apply();
pfDraw();
This does not work. Probably one of the first things pfDraw does is
setting up a clear-fog and thus overruling my settings.
Where should I put the call to shared->fog->apply(); to get the effect
that it only applies to geometry? Maybe in a node-drawcallback?
A possible solution is setting up two channels. One that draws the
earthsky and the other that only draws the geometry. I haven't tried
this one yet. It makes the sorting of geometry possible because a node
drawcallback disables geostate sorting.
Mario
This archive was generated by hypermail 2.0b2 on Tue May 25 1999 - 07:54:37 PDT