Thank you very much, Paul!

But when I tried to run your suggest, I found that It threw a not capibity
to read
Local to VWorld transform exception.

When I tried to set this capibility to the
simpleUniverse.getViewingPlatform().setCapability(vP.ALLOW_READ_LOCALTOVWORL
D)

I got the exception: Not allowed to set capabilities to a lived or compiled
Object,
but
        I DIDN`T ALREADY COMPILE THE BRANCH WHICH THE SimpleUniverse!!

I used this code from the FlyBehavior of the J3DFLy Demo


            yawTransform.rotY( yawAngle );
            pitchTransform.rotX( pitchAngle );
            rollTransform.rotZ( rollAngle );

            velocityTransform.set( velocity ); //velocity es the
traslational vector

            velocityTransform.mul( yawTransform );
            velocityTransform.mul( pitchTransform );
            velocityTransform.mul( rollTransform );

            targetTG.getTransform( targetTransform );
            targetTransform.mul( yawTransform );
            targetTransform.mul( pitchTransform );
            targetTransform.mul( rollTransform );
            targetTransform.mul( velocityTransform );
            targetTG.setTransform( targetTransform );


-----Mensaje original-----
De: Dipl. Ing. Paul Szawlowski <[EMAIL PROTECTED]>
Para: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Fecha: viernes 11 de mayo de 2001 9:05
Asunto: Re: [JAVA3D] view navigation


>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".

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