Yes !!! I found It !!! Justin Coach wrote some packages about it : http://code.j3d.org/ You can use RotationInterpolator from org.j3d.util.interpolator package download it here : http://code.j3d.org/download.html
See the navigation demos. Don�t forget to copy the j3d-org.jar and jed-org-images.jar to your JRE\LIB\EXT folder. Alessandro ----- Original Message ----- From: "Christian Heine" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, October 09, 2002 2:28 PM Subject: [JAVA3D] Problems with camera rotation > 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". --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.391 / Virus Database: 222 - Release Date: 9/19/2002 _______________________________________________________________________ Yahoo! GeoCities Tudo para criar o seu site: ferramentas f�ceis de usar, espa�o de sobra e acess�rios. http://br.geocities.yahoo.com/ =========================================================================== 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".
