Hello, (since I couldn't find this problem searching the www, I'm trying here)
I'm quite new to osg and want to pick a ShapeDrawable in my scene. I got 2 issues: (1) How can i get a pointer to a picked ShapeDrawable? (2) I'm not sure whether the intersection I started from the standard osgviewerQT example and I'm using only ShapeDrawables from osg, since I'm drawing tree layouts (spheres and cylinders). All the ShapeDrawables are added to 1 geode (only 1 for performance reasons), which is added to 1 group, which is loaded into a model to draw. I then overwrote AdapterWidget::mouseReleaseEvent to insert the picking functionality from osgpick.cpp, but I only get the drawable list (in intersections). And the returned drawable list looks weird too - when I select some empty space, I get 0 or more hits and when I select a point with only 1 ShapeDrawable underneath, I also get 0 or more hits. But perhaps this is just a result of a wrong implementation. Best wishes Hartmut -- frag nicht - du könntest eine antwort erhalten Empfehlen Sie GMX DSL Ihren Freunden und Bekannten und wir belohnen Sie mit bis zu 50,- Euro! https://freundschaftswerbung.gmx.de _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

