Does anyone have code they'd be willing to share to form a picking ray from
the mouse position directly into the scene? PickObject.generatePickRay
states that the ray generated is from the viewer position in the direction
of the x,y window coordinates. Picking a quad which is perpendicular to
the view generates a bowing effect as the x,y gets farther from the center
of the window - the distance to the plane naturally increases. I want a
consistent distance for the x,y coord to the plane in front of the view,
which should be given correctly if the picking ray is from the 2D point
projected on to the front of the frustum and the vector is in the direction
of the view. I can easily get the direction vector of the view, but
projecting the 2D mouse point to a 3D point on the front clipping plane is
the problem I currently face and haven't been able to solve yet...
Any help would be appreciated.
Thanks,
Roger
=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/