Re: [osg-users] Making sure that reflection texture only draws if mirror is visible.

2010-12-10 Thread Frank Sullivan
Oh, nice, thanks! -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=34715#34715 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-opensc

Re: [osg-users] Making sure that reflection texture only draws if mirror is visible.

2010-12-10 Thread Jean-Sébastien Guay
Hi Frank, What I'd like to do is add a frustum test here, so I can avoid doing the reflection RTT if the child sub-tree isn't even viewable by the camera. Is this possible? In your cull callback you can cast the osg::NodeVisitor to a osgUtil::CullVisitor, and I think you can then call isCul

[osg-users] Making sure that reflection texture only draws if mirror is visible.

2010-12-10 Thread Frank Sullivan
Greetings, I have some mirrors in my scene, which use RTT for reflections. I'd like to make sure that, if the mirror isn't visible, the RTT pass doesn't happen. A simple frustum check should be fine. If the mirror is in the scene camera's frustum, it would be okay to render the reflection textu