> It sounds to me like you guys think occlusion querying the 
> whole database for the sun would be taxing?

Hm, not sure you understand how this works (or I'm not understanding your
question). First, draw your scene, everything but the Sun and glare. Second,
draw the Sun with occlusion query enabled. Third, use the result of that
query to determine whether or not to draw the glare (or how much of the
glare to draw). Finally, as an optimization, use the occlusion result from
the previous frame so you don't cause a rendering pipe flush.

You do not need to "occlusion query the whole database".
   -Paul

_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to