I'm using OSG version 2.3.7.
On Fri, Apr 25, 2008 at 12:43 PM, Robert Osfield <[EMAIL PROTECTED]> wrote: > Hi Carl, > > What version of the OSG are you using? > > Robert. > > On Fri, Apr 25, 2008 at 11:25 AM, Karl Heijdenberg > <[EMAIL PROTECTED]> wrote: > > Hi, > > > > I have added a cullcallback to my sceneroot. My sceneroot is added to > > serveral views. > > When the callback is called I would like to know which camera that > started > > the traversal. > > Is there any way I can find that out? > > > > I have tried a few things myself from the NodeVisitor nv - which I have > > access to inside the callback: > > First I tried to find the camera in nv->getNodePath(), but the camera > node > > itself is not in the path, which seems reasonable. > > > > Next I tried: > > > dyanmic_cast<osgUtil::CullVisitor>(nv)->getRenderInfo().getCurrentCamera(); > > But the camera pointer I get back is a null pointer. > > > > I also tested to go the nv->getRenderInfo().getView()->getCamera() path > and > > it works fine as long as I only use one camera per context, since it > returns > > the master camera. > > But for each slave camera I also get the master camera back, which is > not > > what I want. > > > > Any ideas? > > > > Thanks Karl > > > > _______________________________________________ > > 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 >
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

