Augustin,

Try this:

TransformGroup vpTrans = null;
Vector3f translate = new Vector3f();
Transform3D T3D = new Transform3D();

vpTrans = su.getViewingPlatform().getViewPlatformTransform();

translate.set(x,y,z);
T3D.setTranslation(translate);
vpTrans.setTransform(T3D);

That should allow you to supply a new location for the viewing platform via x,
y, z values.  If you need to turn your view use rotX, rotY or rotZ.

- John Wright
Starfire Research

Augustin Gjini wrote:

>         I would like to simply move the viewing platform (a translation
> on Y for example..) without use a Navigator (ex : KeyNavigator)...
>         Actually I use this method to define my Viewing platform :
>                         getViewingPlatform().setNominalViewingTransform();
>
> Is anybody can send me a piece of code explain how to do this????
>
>                 Thanks in advance...
>
> ===========================================================================
> 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