What you simply have to do is to apply the transformation in the local
coordinate system of the Viewplatform. So you do the following:

coordinate transformation to local coordinate system -> applying your
transformation matrix -> coordinate transformation back to
virtual coordinate system. Watch order of matrix muliplication.

         myViewplatform . getLocalToVworld( vpTransform );
         vpTransform . getRotationScale( itsTempMatrix );
         vpTransform . set( itsTempMatrix );
         itsTempMatrix.transpose();
         tempTransform .set( itsTempMatrix );
         tempTransform . mul( myTransform, itsTempTransform );
         vpTransform . mul( tempTransform );
        // now apply vpTransform to your Viewplatformtransformgroup

regards
Paul


PS: Just for completion: this does not take any Userhead tranformations.

alvaro zabala schrieb:

> Hi!
>
> I've a problem with view navigation.
>
> When I rotate my Virtual Camera, (viewTransf3D.rotZ(angle), for example)
> and after that I want to translate my position to the left
> (position.x+=step)
>
> My movement is relative to the absolute reference system!
>
> So I move to the East, but in the canvas's view, I don't move to the plate�s
> left.
>
> Can someone help me?
>
> Thanks!
> Regards.
>
> ===========================================================================
> 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