I have a pretty straightforward question about picking in j3d.

I need to have a method something like the following:

public Shape3D PickAt(int x, int y)

that will pick the closest object along the ray from (x,y) in window
coordinates into the scene.

I've gotten a MousePickBehavior subclass to work fine, but I need
something that can pick into the scene at any time.

I tried using a PickObject as follows:

PickObject picker = new PickObject(canvas,root);
picker.pickClosest(blah,blah);

but couldn't get it to work properly.

Any help would be greatly appreciated.
Thanks,
-David

+-=====================================================================-+
|                                                --== e-mail ==--       |
|     _/_/_/      _/_/    _/   _/  _/_/_/       [EMAIL PROTECTED]      |
|    _/    _/  _/    _/  _/  _/   _/                   or               |
|   _/    _/  _/_/_/_/  _/ _/    _/_/       [EMAIL PROTECTED]  |
|  _/    _/  _/    _/  _/_/     _/                                      |
| _/_/_/    _/    _/  _/       _/_/_/             --== WWW ==--         |
|                                          http://srv.res.cmu.edu/~dch/ |
+-=====================================================================-+

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to