Java3d's Scenegraph & Sun's VRML Loaders allow ------------------- complex 3d objects to be loaded easily,

  and the Java3d Scenegraph can be searched & traversed and
  the nodes can be read and manipulated as these programs
  by Sun, Nasa, Selman, and myself demonstrate.


| Human VRML model with Joint Node Found and Controlled | ----------------------------------------------------- | | Java program ( source code ) and VRML file: | | HumanWithControlledArm_VRML.java, stickChickMinimal.wrl | http://www.frontiernet.net/~imaging/vrml_loaders_working.html http://www.frontiernet.net/~imaging/sourcecode/ http://www.frontiernet.net/~imaging/sourcecode/stickChickMinimal.wrl http://www.frontiernet.net/~imaging/sourcecode/HumanWithControlledArm_VRML.java


| Sun's Java3d Scenegraph Editor showing a Nasa VRML model | -------------------------------------------------------- | | uses the Sun VRML Loaders, source code available and is free. | http://www.frontiernet.net/~imaging/Nasa_3d_animation.html http://java3d.netbeans.org/j3deditor_intro.html


| Picking of VRML objects with your mouse is demonstrated | in a new book, Java 3D Programming, by Daniel Selman ... | | 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. | | VrmlPickingTest.java | http://www.frontiernet.net/~imaging/games_with_java3d.html http://www.frontiernet.net/~imaging/sourcecode/VrmlPickingTest.java http://www.manning.com/selman/


| Nasa's "FastScript3d" Java + VRML + Scripting" program | ------------------------------------------------------ | | More demonstations ( with source code ) of Nasa's Java3d | with Javascript extensions ... | | VRML animation with Java3d in a browser with the Sun VRML Loaders. | http://www.frontiernet.net/~imaging/Nasa_3d_animation.html


Here's a sample of the Java3d source code:




  HumanWithControlledArm_VRML( )             // Constructor
  {
        createWindowFrameAndAdd3dCanvas( canvas3d
                               = createJava3dCanvas3D( )  );

        universe  = new SimpleUniverse(     canvas3d    );
        view      = universe.getViewer().getView( );

createScenegraph( );

pauseNSecondsForDramaticEffect( 2 );

        rotateControlledJoints( );
  }


TransformGroup getNamedJointFromNodesGroup( String jointName, Hashtable nodesGroup ) { TransformGroup

         namedJointTG = (TransformGroup) nodesGroup.get(
                                       HAnimTag + jointName  );
          namedJointTG.setCapability(
                       TransformGroup.ALLOW_TRANSFORM_READ   );
          namedJointTG.setCapability(
                       TransformGroup.ALLOW_TRANSFORM_WRITE  );

        return( namedJointTG );
     }

// ----- end Java source code ----


Attached: sc_load_vrml_controlled_joint.gif ( 24,252 bytes )



Shows Sun's Java3d, Sun's VRML Loaders Working, Sun's Netbeans IDE.


Netbeans IDE:

http://www.netbeans.org/products/ide/screenshots.html


Makes making your Java programs easier with Java.



-- 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".

<<inline: sc_load_vrml_controlled_joint.gif>>

Reply via email to