I am trying to set up picking in our project.

I am running into a few issues.

I was able to find an example of a couple of classes using the find.
What I found seems is a class called PickVisitor which is derived from
osg::NodeVisitor.  I am using a camera to get all of our view
information and this was the only example I could find that used a
camera.  I have it implemented in my code and I can't quite seem to get
it to work correctly.  I am not sure exactly what it is supposed to do.

There were a couple of functions in the example that I used.  One was
ComputeIntersections and the other is ComputePixilCoordinates.  Both of
these functions take in an x and y.  One of my questions is, this x and
y, are these the mouse x and y positions?  One of the reasons I need
picking is I need to get the x and y of an a particular object so that I
can zoom in on it.  I need to get past the screen coordinates and get to
the object coordinates.  I am not sure how to achive this with the
PickVisitor.  Any ideas of what can be done?

Thanks,

Shane 
_______________________________________________
osg-users mailing list
[email protected]
http://openscenegraph.net/mailman/listinfo/osg-users
http://www.openscenegraph.org/

Reply via email to