Hi Tobias
 
Supposing you have  TransformGroups called bottomViewTG, topViewTG, rightViewTG, leftViewTG and backViewTG, each containing a proper ViewPlatform (that attaches to a View, that renders to a Canvas3D), transformation setup is as follows:
 
        Transform3D tempT3D = new Transform3D();
        Transform3D auxT3D = new Transform3D();
        auxT3D.setTranslation(new Vector3d(0.0, 0.0, 15.0));
 
 
        tempT3D.rotX(Math.PI/2);
        tempT3D.mul(auxT3D);
        bottomViewTG.setTransform(tempT3D);
 
        tempT3D.rotX(-Math.PI/2);
        tempT3D.mul(auxT3D);
        topViewTG.setTransform(tempT3D);
 
        tempT3D.rotY(Math.PI/2);
        tempT3D.mul(auxT3D);
        rightViewTG.setTransform(tempT3D);
 
        tempT3D.rotY(-Math.PI/2);
        tempT3D.mul(auxT3D);
        leftViewTG.setTransform(tempT3D);
 
        tempT3D.rotY(Math.PI);
        tempT3D.mul(auxT3D);
        backViewTG.setTransform(tempT3D);
 
Hope this helps.
 
                    F�bio
-----Original Message-----
From: Tobias Bergman [mailto:[EMAIL PROTECTED]]
Sent: sexta-feira, 10 de maio de 2002 12:13
To: [EMAIL PROTECTED]
Subject: [JAVA3D] Set Views Top Front & Left...

I am new to Java3D and want to set three different Views so they show top, front & left like in 3dStudio.

How should I do that? I read somewhere about matrix but I don’t know so much about those stuff.

I asked earlier how I could rotate a View like in 3DS and that works now…

 

Regards Tobias Bergman

Reply via email to