You can apply rotations or other transforms on any
 leaf or branch in the Scenegraph provided you have
 placed TransformGroups where needed and make your
 rotations as local or global as you like.


local rotation possible ? [ confused by transforms in scenegraph ] ------------------------- | | I have a new problem. | | I update only the x- and y-rotation of my ship | every Frame. It sets the rotation by looking at the | Mouse position. But my ship rotates over all axis | x,y AND z, but not at the same time!!! | | It looks like Java3D decides, which are the x and y axis | from the viewplatforms point of view!! Is that right? | | How can I set a "local"-Rotation, which rotates the | local axis not the "viewed" oneHuh | | http://archives.java.sun.com/cgi-bin/wa?A2=ind0309&L=java3d-interest&P=7837


Try Brown University's Java3d Exploratories Project, see the VRML for the Earth Rotating & Orbiing the Sun, have a coke, and think before you code ;^)



 Brown University  Java3d  Exploratories Project
 ------------------------------------------------
 |
 | After revolutionizing aspects of virtually every
 | other field, computer technology is finally being
 | applied to education in a way that promises to change
 | the educational process as we know it.
 |
 |  The potential for using computers and the Web in education
 | is finally being recognized and acted upon, ...
 |
 |  The goal of the Exploratories project is to begin the
 | groundwork for a next-generation approach to Web-based
 | educational software. In our long-term vision, the
 | next-generation of learning technologies, manifested as
 | full courses and digital libraries of richly interactive
 | educational software components ("learning objects") and
 | curriculum units, will transform traditional teaching
 | as well as powerful Web-based offerings.
 |
  http://www.cs.brown.edu/exploratories/about/home.html


Transformation Hierarchy ( Java3d Example from Brown University ) | ------------------------ | | This applet shows how changing the transformations | of a scene graph affects the final result and how | each transformation affects the space in which child nodes | are transformed. | | Transform Propagation | --------------------- | This applet shows how changing the transformation matrices | change when a scene graph node is changed. |

http://www.cs.brown.edu/exploratories/freeSoftware/catalogs/repositoryApplets.html
  http://www.cs.brown.edu/exploratories/freeSoftware/repository/
   edu/brown/cs/exploratories/applets/transformationHierarchy/
   transformation_hierarchy_guide.html


It's a Mad, Mad World:


 Rotating Bodies Rotating around Rotating Bodies
 -----------------------------------------------
 |
 |  Our Earth, Moon, and Sun Orbiting & Rotating
 |
 | with VRML & Java  ( Please wait for it to load )
 |
 | Uses this VRML file:
 |
 | planetary_earth_moon.wrl,
 |
 | which works with VRML Viewers based on the Sun VRML Loaders.
 |
 |  Some say Java is slow, but this is faster than
 |  real-time rendering  ( 1 year == 100 Sec. )   ;^)
 |
  http://www.frontiernet.net/~imaging/Nasa_3d_animation.html
http://www.frontiernet.net/~imaging/shout3d/models/planetary_earth_moon.wrl


^-- see it with Java without Java3d, see the VRML, the VRMl works with Sun's VRML Loaders.


Java3d will render your transforms correctly for you,


but you have to give it a hint as to what you want !


Yes it's tricky to learn, but it does work.


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

Reply via email to