Sun's mailing lists are archived which you can browse and search:


Pick Behavior: 3 examples with sourcecode w. Selman's VRML Picking Demo ----------------------------------------------------------------------- | http://archives.java.sun.com/cgi-bin/wa?A2=ind0308&L=java3d-interest&P=649


Since it was short & so well written it's reprinted below:




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


Scenegraph Tree & 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 |

http://archives.java.sun.com/cgi-bin/wa?A2=ind0307&L=java3d-interest&P=R49634&m=39967



P Watson wrote:
>
> I have a shape whitch i have placed on a canvas and which
> i would like to add another shape to join onto it.
>
> I have a pick routine which provides the x,y,z coords but
> unfortunately causes an error when i click on the intial shape.
>
> It says that to pick a branchgroup it needs to be alive.
>
>
> Does anyone know how to solve it or get around the problem ?
>
>       Paul
|
http://archives.java.sun.com/cgi-bin/wa?A2=ind0308&L=java3d-interest&P=438


Combining VRML with Java3d helps you separate the "data" and your controling logic of your program helping you create flexible programs quickly and Picking of 3d objects with Java3d is demonstrated by Selman's code using Java3d, VRML & Sun's VRML Loaders.

  I use Picking for an interactive Chess Player
using both Java3d and Java without Java3d
where a multi-jointed Human Player moves the
chess pieces after you click on the chess board
using the Picking functionality you asked about  ;^)


Picking on Objects, Playing Chess with Java & VRML -------------------------------------------------- http://www.frontiernet.net/~imaging/H-Anim_Avatars.html

 -- Paul, Java Developer & Web Animator
--------------------------------------
Imaging the Imagined: Modeling with Math & a Keyboard


P Watson wrote:
Hi,

I recently received a reply providing some solutions to the problem by P Flavin. Unfortunately i accidently deleted the email - can you please send it again P Flavin or anyone else who has a copy. It would be much appreciated since i have spent ages trying to fix the problem.

Thanks
Paul


Hi



=========================================================================== 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