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
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to