I am new to Java 3D and have a simple problem to solve - that I can't!
All I'm trying to do is change the view position around the origin by clicking 
buttons, so I change from the default (+ve Z) front view, to the side, back, top and 
bottom views.

I can transform the view using the Transform3D:

 Transform3D t3d = new Transform3D();
 simpleU.getViewingPlatform().getViewPlatformTransform().getTransform(t3d);
 float[] transformMatrixView = new float[16];
 t3d.get(transformMatrixView);
 float x = transformMatrixView[3];
 float y = transformMatrixView[7];
 float z = transformMatrixView[11];

 transformMatrixView[3] = x+0.5f;
 transformMatrixView[7] = y+0.5f;
 transformMatrixView[11] = z+0.5f;

 t3d.set(transformMatrixView);
 simpleU.getViewingPlatform().getViewPlatformTransform().setTransform(t3d);

This works, BUT i also need to rotate the view in order to see the object in the 
origin.

I have tried using:

t3d.rotX(Math.toRadians(180));

But everything just dissappears from view with any value of rotation.

PLEASE help.

TIA

Andrew

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