Hi Chris, There isn't enough info about how you are calling computeIntersections to really know what is going on - there are several computeIntersections methods, so I can't say whether it's a bug, or code misuse.
As a general note, the computeIntersections methods are just convenience methods for the most common needs, but they are just implemented on top the general purpose IntersectionVisitor/*Intersector classes. These classes aren't difficult to use so you just implement your work on these. Robert. On Sun, Oct 26, 2008 at 10:28 AM, Chris Denham <[EMAIL PROTECTED]> wrote: > I have a problem with Viewer:computeIntersections for nodes below a subgraph > rendering camera that doesn't have the ABSOLUTE_RF reference frame. In fact, > computeIntersections results are exactly as though an ABSOLUTE_RF has been > set on the camera, even though it has not. The code below creates a simple > scene the exhibits the problem. I used this in the osgpick example to show > computed intersections. > Is this a bug, or is this to be expected? If it is to be expected, how can I > get picking to work for nodes below my post render camera? > Chris. > > osg::Group* group = new osg::Group(); > > osg::Geode* sphere = new osg::Geode(); > sphere->setName("Sphere"); > sphere->addDrawable(new osg::ShapeDrawable(new osg::Sphere())); > > osg::Geode* cube = new osg::Geode(); > cube->setName("Cube"); > cube->addDrawable(new osg::ShapeDrawable(new osg::Box())); > > osg::Camera* camera = new osg::Camera(); > camera->setRenderOrder(osg::Camera::POST_RENDER); > camera->setClearMask(GL_DEPTH_BUFFER_BIT); > //camera->setReferenceFrame(osg::Transform::ABSOLUTE_RF); > > group->addChild(sphere); > group->addChild(camera); > camera->addChild(cube); > _______________________________________________ > osg-users mailing list > osg-users@lists.openscenegraph.org > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > _______________________________________________ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org