Hi Shane, You have the source code, so just dig into the osgProducer::Viewer's computeIntersections code - inside here you'll find it using osgUtil::PickVisitor/IntersectVisitor.
Robert. On 4/13/07, Rogers, Shane <[EMAIL PROTECTED]> wrote:
Hello all, I am trying to establish Picking for my program, we are currently using osg 0.9.9. I know this is an older version, but I was wondering if anyone had any suggestions. I was looking at the examples and it seems that all of the Examples were using osgGA and osgProducer. We are currently using OpenThreads, osg, osgDB, osgUtil and Producer. We do not use osgProducer and osgGA. I noticed that in these examples they establish a viewer object from osgProducer::viewer and use the getEventsHandlerList from that object and pass it the picking object so then picking is set up for this particular example. I was wondering is there anyway else to establish picking without using osgProducer and osgGA? Is there something like the getEventsHandlerList handler somewhere else? We are using the Producer::Camera to set the SceneHandler and realize the render surface. We are using the osgSimpleSceneHandler to set up our scene handler. Any ideas how I can get picking in here without using osgGA and osgProducer? Thanks, Shane Rogers _______________________________________________ osg-users mailing list [EMAIL PROTECTED] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
_______________________________________________ osg-users mailing list [EMAIL PROTECTED] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
