> From: Michael Wever <[EMAIL PROTECTED]>
>
> im stuck on how objects are translated away from the origin.
> if i have four objects, all at different locations, and moving
> independantly should each exist in a seperate translation class?

Yes, each object is moving independently, so they each have their own 
transformation, so the each need to be in a different TransformGroup.

> if i am to display a series of non-animated scenes, ie stillframes,
> do i have to compile after every translation (of objects to the
> next frame)?

Nope.  Compiling a scene is used to optimize a scene to be viewed repeatedly.  
You want to just set up your transformations for each frame and let it display.

> this is neccessary for me as user input is constantly controling
> the location of the various objects.

The user input controls the transforms for the primitives.  This is a common 
structure for J3D programs.

> do the Shape3D Sphere & Cylinder automatically create the geometry
> necessary?

Yes.  If you want display the spheres and cylinders with lights you'll want to 
specify GENERATE_NORMALS.  See the documentation for 
com.sun.j3d.utils.geometry.Cylinder and the parent class 
com.sun.j3d.utils.geometry.Primitive.

Doug Gehringer
Sun Microsystems

=====================================================================
To subscribe/unsubscribe, send mail to [EMAIL PROTECTED]
Java 3D Home Page: http://java.sun.com/products/java-media/3D/

Reply via email to