You can get a SimpleUniverse view transform group from:

SimpleUniverse mUniverse;

mUniverse.getViewingPlatform().getMultiTransformGroup().getTransformGroup(0);

>From here, you can apply a positive z-axis transform to it to move the camera back 
>(the origin position looks down the negative z-axis).

Sean


> -----Original Message-----
> From: Vidya Sagar [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 03, 2002 2:58 PM
> To: [EMAIL PROTECTED]
> Subject: [JAVA3D] How to change the camera position
> 
> 
> Hi all,
>        I want to move my camera 5 units back from the
> original position. Could anyone give me any hints or
> sample code of how to do this?
> 
> At present I am using the following sample code:
> 
> 
> GraphicsConfiguration config =
> SimpleUniverse.getPreferredConfiguration();
> Canvas3D canvas3D = new Canvas3D(config);
> SimpleUniverse simpleU = new SimpleUniverse(canvas3D);
> View view = new View();
> view.setProjectionPolicy(View.PERSPECTIVE_PROJECTION);
> view.setFrontClipDistance(0.1);
> view.setBackClipDistance(100.0);
> 
> simpleU.getViewingPlatform().setNominalViewingTransform();
> 
> Thanks in advance,
> Sagar.
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com
> 
> ==============================================================
> =============
> 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".
> 

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