HI Manu, The OSG IntersectionVisitor and associated Intersector class only take account of the geometry so ignore the effects of OpenGL state. For limited state modes one could come up with a custom Intersector class, such as treating certain geometry leaves as polygon outlines.
The other approach would be to implement a GL picking approach. Robert. On Nov 22, 2007 9:28 AM, Emmanuel Roche <[EMAIL PROTECTED]> wrote: > Hi everyone... > > just a few questions on the picking mechanism: > > Imagine I want to pick objects in the scene, but some of them are in > wireframe mode... in this case I would like the object to be picked only if > I'm really on an edge (or maybe very close to an edge...). This doesn't seem > to be the default picking result obtained with something like > view->computeIntersections(...) as clicking in the middle of a wireframe > rendered face still give a collision. > > Does anyany have any suggestion on how this would be best achieved ? > (Personaly I was thinking about making calculations using the local hit > point and the vertices of the colliding face to see how close the hit point > is from a given edge) > > Manu. > > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

