> I would like to create a virtual universe instead of simple universe, but
I
> don't find this in tutorial on java.sun.com.

http://developer.java.sun.com/developer/onlineTraining/java3d/
http://java.sun.com/products/java-media/3D/collateral/

But the sourcecode of SimpleUniverse might be the best tutorial....

> I would like to know that is
> it possible for me to move the view object around in simple universe?  If
> yes, then I don't have to create virtual universe.

Well, the View does not have a position, but the ViewPlatform may have one.
I have a bunch of code setting up the universe a little bit different from
the Sun utilities. If you like....

The following snippet ends up with a TransformGroup that allows you to move
the camera around:

  // Use Sun's utility to create the environment.
  mUniverse = new SimpleUniverse( mCanvas );

  // add mouse behaviors to the ViewingPlatform
  ViewingPlatform viewingPlatform = mUniverse.getViewingPlatform();

//  PlatformGeometry pg = new PlatformGeometry();
//  viewingPlatform.setPlatformGeometry( pg );

  // This will move the ViewPlatform back a bit so the
  // objects in the scene can be viewed.
  viewingPlatform.setNominalViewingTransform();

  /** Retrieve the ViewPlatform object for camera manipulation. */
  mViewPlatformTransform = viewingPlatform.getViewPlatformTransform();

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