Mouse Picking with Java3D

Please help,

I am very new to Java3D and am having some issues with the mouse picking. I have a Model that I am rendering that is made up of multiple Shape3D Objects. What I would like to do is allow the user to simply use a mouse click to select one or more of the rendered Shape3D Objects (that make-up the single Model) and change the color of that particular Shape3D Object - a “highlight” of some kind.

If someone out there has some experience doing this type of work can you please help a newbie out with some hints (or even better - some simple code).

Thanks in advance for any help that any one can provide.

Java 3D provides picking utilities in its packages “com.sun.j3d.utils.pickfast” and “com.sun.j3d.utils.pickfast.behaviors”.

Java 3D example programs source code are available at https://java3d.dev.java.net/binary-builds.html. Especially have a look at “org.jdesktop.j3d.examples.picking.PickTest”. Good luck.

August

Thanks InteractiveMesh ;D The information you gave was exactly what I needed.