Picking In 3D

Is there a tutorial out there to pick objects with a mouse click in an OpenGl created 3D world WITHOUT using the Java3D API? I’ve been looking everywhere and can’t seem to find any. :-/ Found plenty for 2D…and for 3D with Java3D, but I’d like to avoid Java3D considering I’ve already built most the engine without it. Any help or suggestions would be greatly appreaciated.

Thanks

Moved topic here from the Java3D forum.

you should have a look at glSelectBuffer which provides a mechanism for picking any object drawn on the screen.

there is also a NEHE tutorial, lesson #32 dealing with this topic. although i m not sure if it has been ported to jogl.

we used selection buffer in 2D and that worked very well. 3D should work fine as well. why should it :slight_smile: