I created a simple Picking example for the OpenSceneGraph Quick Start Guide that might be helpful. It walks backward through the returned NodePath until it finds a MatrixTransform and then attaches an update callback to the MatrixTransform. Download the example code from here: http://www.openscenegraph.com/osgwiki/pmwiki.php/Documentation/QuickStartGui de Paul Martz Skew Matrix Software LLC http://www.skew-matrix.com <http://www.skew-matrix.com/> 303 859 9466
_____ From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Schneider Sent: Friday, April 13, 2007 1:22 PM To: [EMAIL PROTECTED] Subject: [osg-users] Identifying Picked Transform I load one model, and then use multiple PositionAttitudeTransform nodes to have this model appear at different places. How can I tell which PAT node is the parent of the picked node? Using the techniques stolen from the osgPick example - I've tried crawling up the graph using ->getParent(0) in the 'pick' routine. I've tried everything I could think of, but can't seem to attach any sort of indentifying data to a PAT node that can then be seen after the event. Example: I can setName when I'm building the graph, and it seems they survive Optimizer, until I look at the nodes in the 'pick' routine - all that sort of stuff is empty. -Steve Schneider _____ Ahhh...imagining that irresistible "new car" smell? Check out new <http://us.rd.yahoo.com/evt=48245/*http://autos.yahoo.com/new_cars.html;_ylc =X3oDMTE1YW1jcXJ2BF9TAzk3MTA3MDc2BHNlYwNtYWlsdGFncwRzbGsDbmV3LWNhcnM-> cars at Yahoo! Autos.
_______________________________________________ osg-users mailing list [EMAIL PROTECTED] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
