On Tue, 2012-09-11 at 20:36 +0200, Janna Terde wrote:
> Hi Jeremy,
> 
> I can cull the RTT camera using its cull mask or node mask however I need to 
> know when should I do it. I would like to cull the camera when the node 
> representing the mirror (Geode) is culled so when it is outside of the 
> viewing frustum. This is what I am trying to do, I've tried to use 
> CullVisitor and isCulled function and also tried to construct the Polytope 
> from main camera but still did not get the correct behavior.   :(

OH RIGHT. Good point, a kind of "chicken-and-egg" problem. :)

Try this, and I'll try it to as soon as I can: create a CullCallback
that calls isCullingActive(); if so, set NodeMask to something wonky.
Attach the CullCallback to your Geode.

(This is just from a cursory look at the API and from experience, I'll
try it soon...)

> So I am wondering if there is something I don't know since it seems to be 
> very common thing to do and should be simple to do. 
> 
> Cheers,
> Janna
> 
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=49946#49946
> 
> 
> 
> 
> 
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to