At 10:22 AM 10/11/99 +0400, Vladimir Olenin wrote:
>DG> Using either mm or m, you'll have to set up your view display your object
>DG> correctly. The examples are generally set up to display objects in the -1 -> 1
>DG> range around the origin.
>
>I wonder where i can set this range?
The idea is you move the viewing platform to wherever you need it to be.
Here's some sample code, sU is a simpleUniverse:
mVP = sU.getViewingPlatform();
TransformGroup viewTG = mVP.getViewPlatformTransform();
Transform3D viewT = new Transform3D();
viewT.set(new Vector3d(startX, 2.0, startZ));
viewTG.setTransform(viewT);
Of course working out the proper startX, startZ is your problem. You can
also experiment with setting the field-of-view, but I always get bad
results at anything other than the default. -Tim
===========================================================================
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".