Hi all, i have create an application with some objects in the space. In this space the viewer should have the possibility to rotate 360� degrees arround these objects on y-Panel and 45� degrees on x-Panel.
I have realized this rotations for each axis and it works fine. The rotation function is not the matrix, its the simple 2D rotation function : Rotation for y-Axis : x' = x * cos(angle) - z * sin (angle) z' = x * sin(angle) + z * cos (angle) Rotation for x-Axis : y' = y * cos(angle) - z * sin (angle) z' = y * sin(angle) + z * cos (angle) Whith this function i create a new Point3D for the camera and use it with the lookAt Method.I got functionaly results, but in differend views (each rotation have his own camera vector with own coords). The problem i have is, that i will combine the rotations. After u have rotate on y-Axis, u should start at this point of view to rotate on other axis. I tried to use the result point of the other rotation as base for the new rotation, like x-Rot result as coords for y-Axis rotation and the result of the y-Axis rotation for the x-Axis rotation. It works not realy correctly, i got "jumps" in the view when i change the rotation after several rotations on one axis. On the other way i've tried to manipulate the view Transformgroup by rotating with the JAVA rotX and rotY methods. It works, but in this way i rotate the hole space around my position by rotating the space around the camera, but i need to rotate the camera around my space. Whats my failure? Can anyone help? Thx in advance Christian -- +++ GMX - Mail, Messaging & more http://www.gmx.net +++ NEU: Mit GMX ins Internet. Rund um die Uhr f�r 1 ct/ Min. surfen! =========================================================================== 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".
