Hi Simon, Perhaps you can achive this by add a StateSet above your scene to dim everything down, but protect the explosion for this diming effect. You can use osg::BlendColor to dim thing down, or use muli-texturing, or a fragment program.
Robert. On 7/11/06, Simon Leung <[EMAIL PROTECTED]> wrote:
Hi Robert, as a first pass, we are trying to create a simple auto-gain algorithm, which if there is an explosion in the camera's field of view, then we scale everything besides the explosion to very dark, and keeping the explosion white as it is. Thanks. Simon. On 7/11/06, Robert Osfield <[EMAIL PROTECTED]> wrote: > On 7/11/06, Simon Leung <[EMAIL PROTECTED]> wrote: > I was wondering if anyone knows how to determine if a node is in the > camera's current field of view. Thank you for your time. You can add a custom cull callback, if it gets called then its in the view frustum. However, you might want to expland on what you are trying to do as there might well be a simpler solution. _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/ _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
