"Picking" is well documented in the Demos, Books, the Archives. ---------
( in reply to ) Glenn Pinkerton writing: | | | Are the Shape3D's clickables somehow ? | | Can anybody tell something about this ? | | Thanks, Boby | http://archives.java.sun.com/cgi-bin/wa?A2=ind0309&L=java3d-interest&P=9679
Yes, " Picking " is the proper term for it.
There are examples already on your computer with the Java JDK, and in the archives of this mailing list :
ls $JAVA_HOME/demo/java3d/*/*Pick*.java
/usr/java/jdk1.4.1/demo/java3d/FourByFour/PickDragBehavior.java /usr/java/jdk1.4.1/demo/java3d/PickTest/PickTest.java /usr/java/jdk1.4.1/demo/java3d/PickText3D/PickText3DBounds.java /usr/java/jdk1.4.1/demo/java3d/PickText3D/PickText3DGeometry.java /usr/java/jdk1.4.1/demo/java3d/TickTockPicking/TickTockPicking.java /usr/java/jdk1.4.1/demo/java3d/TickTockPicking/PickHighlightBehavior.java
Search the JAVA3D-INTEREST Archives ----------------------------------- | http://archives.java.sun.com/cgi-bin/wa?S1=java3d-interest
Find Sun's ___ Picking ___ in the Java3d JDE ( on YOUR computer )
Picking Objects: 3 examples with sourcecode including | --------------------------- Selman's VRML Picking Demo | | Here are 3 demos of Picking that work succesfully. | | Java3d, and Picking in particular require a number | events to take place in the proper order including | creating a scenegraph, setting capability bits, | combining the scenegraph with the canvas, etc. | so starting with working code that demonstrates | the functionality you desire is most helpful ... | | | Picking Demos for Java3d | ------------------------------------------------- | http://www.eimc.brad.ac.uk/~ijpalmer/Java3Dfast/Source/SimplePick.java | http://www.eimc.brad.ac.uk/~ijpalmer/Java3Dfast/Source/Java3Dsource.zip | http://www.frontiernet.net/~imaging/sourcecode/VrmlPickingTest.java | http://www.eimc.brad.ac.uk/~ijpalmer/Java3Dfast/ | Java SDK: $JAVA_HOME/demos/java3d/PickTest/PickTest.java | | | Picking Demo with Source using Java3d, VRML & Sun's Loaders | ----------------------------------------------------------- || || Picking of VRML objects with your mouse is demonstrated || in a new book, Java 3D Programming, by Daniel Selman || ( shown on the left ). || || The source code is avaible for free. || || This new book uses the old, reliable Sun VRML Loaders for Java3d. || || The program reads a 3d scene as a simple VRML text file, || and displays the Java3d Scene Graph ( which is interactive, || you can expand and collapse the branches of the scenegraph || and examine the contents of the nodes ), it renders the 3d scene, || and when you click on an object it tells you what you clicked on. || || You can see ( and download ) the Java Source code of the || operative file: VrmlPickingTest.java || | http://www.frontiernet.net/~imaging/games_with_java3d.html http://www.frontiernet.net/~imaging/sc_vrml_picking_with_java3d.jpg
| Selman's VRML Picking Demo ... Works & Documented | ------------------------------------------------- | J3dTree.jar Scenegraph Tree Viewer with Java3d & VRML | ---------------------------- by Daniel Selman, TornadoLabs.com | | | http://www.manning.com/selman/selman_source.zip | http://home.rochester.rr.com/javajava/SourceCode/j3dtree_jar.jar | | | http://www.frontiernet.net/~imaging/sourcecode/VrmlPickingTest.java | http://www.frontiernet.net/~imaging/sc_vrml_picking_with_java3d.jpg | | | http://www.frontiernet.net/~imaging/games_with_java3d.html | | "Documentation" | ------------- | | 1) Get the ".jar" files | 2) type: jar -xvf j3dtree_jar.jar | 3) type: ( on Windows ): run_j3dtree.bat | ---- ( on Linux ): sh ./run_j3dtree.sh | 4) click on the sphere, cylinder, or box | 5) yell: " Wow, it works ! " | | http://home.rochester.rr.com/javajava/SourceCode/j3dtree_jar.jar |
http://archives.java.sun.com/cgi-bin/wa?A2=ind0308&L=java3d-interest&P=R326
Picking & Playing Chess with Java on a Web Page ------------------------------------------------ | | "Pick" or click on a chess square and the Avatar | --------------- moves the chess pieces for you. | http://www.frontiernet.net/~imaging/H-Anim_Avatars.html http://www.frontiernet.net/~imaging/Nasa_3d_animation.html http://home.rochester.rr.com/javajava/sc_nasa_java3d_simple.jpg
^-- Chess Player with Picking with multiple views ( Java3d ) The first chess player is 3d with Java but not Jaav3d.
Java3d is tricky, but most you problems have been already solved by others in the community.
-- Paul, Java Developer & Web Animator -------------------------------------- Imaging the Imagined: Modeling with Math & a Keyboard
=========================================================================== 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".