Hi Steven, I'm afraid you'll just have to put break points into src/osgUtil/CullVisitor.cpp in your the debugger and step through to see what CullVisitor::apply(Camera&) is doing in your case. As far as I'm aware all the Camera settings are being correctly managed by the OSG, it could be that there is a bug revelled in your usage, but just as likely is a mistake at your end. Since you're the only one with all your code and OSG to hand you really are the one best placed to explore this further.
Robert. On Jan 15, 2008 3:47 PM, Steven Powers <[EMAIL PROTECTED]> wrote: > That's what I first thought. But the method I'm using doesn't seem to be > working. > > Here is a clearer picture of my setup: > > -The inheritance mask on the CameraNode is set with the following: > int inheritanceMask = _camera->getInheritanceMask(); > inheritanceMask &= ~(osg::CullSettings::CULL_MASK); > _camera->setInheritanceMask(inheritanceMask); > > -CameraNode is a child of the viewer, root > -The rest of the sceneGraph is a child of BOTH the root and the > CameraNode. > -An object on the scenegraph is assigned a NodeMask of 0x1. > -The viewer is assigned a cullMask of 0x1 > -The CameraNode is assigned a cullMask of 0x10 > > The object with NodeMask 0x1 is rendered by BOTH the CameraNode and the > Viewer. The expected output would be for only the Viewer to render the > object. > > Steven Powers > General Dynamics Robotic Systems > Software Engineer > 1234 Tech Court > Westminster, MD 21157-3029 > (410) 876-9200 Fax: 410-876-9470 > > > > > -----Original Message----- > From: Robert Osfield [mailto:[EMAIL PROTECTED] > Sent: Tuesday, January 15, 2008 10:37 AM > To: Steven Powers > Subject: Re: [osg-users] NodeMask CullMask problem > > > On Jan 15, 2008 2:59 PM, Steven Powers <[EMAIL PROTECTED]> wrote: > > From what your telling me it sounds like only the viewer does a > > traversal of the scene graph and the cameraNode itself does not. If I > > made the cameraNode a slave camera of the viewer will that use the > > cameraNode's cullMask correctly??? > > The camera doesn't traverse itself, its its parent than traverses it, > the camera only traverses its children. This is where you've become > unstuck. A camera in the scene graph should be setting the cull > mask, as time more mentioned this is controlled via the CullSetting's > inheritance mask so you can control which parts of a Camera's > CullSettings are inherited from above and what not. > > Robert. > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

