Why not just used node masks ? This is the typical way to approach this problem
Gordon __________________________________________________________ Gordon Tomlinson Email : gtomlinson @ overwatch.textron.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Riccardo Corsi Sent: Wednesday, August 13, 2008 2:07 PM To: [email protected] Subject: [osg-users] pick on specific subgraph / nodepath Hi All, I'm trying to do some picking only in a specific subgraph, so I was thinking to use the version of "computeIntersections" which include a nodepath option. Unfortunately it didn't work as aspected, and I don't know where I'm wrong. I modified the osgpick example (attached) to pick, for instance, only the rectangles in the HUD. What I do is: - store the root of the HUD in a pHudRootNode - pick with the funtion viewer->computeIntersections(ea.getX(), ea.getY(), pHudRootNode->getParentalNodePaths()[0], intersections) but I don't get any result. I've also tried to limit the nodepath to the view's SceneData, like this: pHudRootNode->getParentalNodePaths(viewer->getSceneData())[0] but it doesn't work either. Where am I wrong? Thank you! Ricky _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

