[osg-users] Different views hide/show different nodes shared scene graph

Catalin Flower inbox.icf at gmail.com
Fri Apr 19 06:03:21 PDT 2019


Hi Chris,

It has worked, thank you very much.

1) setCullCallback(NodeCallback) on the nodes

2) Implementing void operator()(osg::Node* node, osg::NodeVisitor* nv)
{
osgUtil::CullVisitor* cullvisitor = dynamic_cast < osgUtil::CullVisitor* >(nv);
osg::Camera* pCamera = cullvisitor->getCurrentCamera();

... 

if (...) traverse(node, nv);
}

I could not find nv->asCullVisitor(). I am using OSG 3.4.

Thank you!

Cheers,
Catalin

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=75873#75873







More information about the osg-users mailing list