Hi, First you have create tree Transform3D objects with no translation. Than you rotate the first Transform with rotX(double value) The second Transform with rotY(double value) At the end you multiply the two transforms and store the result in transform number three. transform3.mul(transform1, transform2). or transform3.mul(transform2, transform1) transform3 is your result..
there are a few other ways to do that.. exp: Matrix3f with rotation (sin and cos) ----- Original Message ----- From: <[EMAIL PROTECTED]>; "Dipl. Ing. Paul Szawlowski" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, November 27, 2002 8:53 AM Subject: Re: [JAVA3D] rotation problem > Lan Wu-Cavener schrieb: > > Hi, every one: > > > > I have the following rotation problem. What I need is to rotate the > > ViewPlatform around its local x axis and local original y(0,1,0), or the > > vector (0,1,0) in the local coordinates. Could anyone please help to figure > > out how to make it work. > > > > Thanks in advance! > > Lan > > > > Lan Wu-Cavener > > Dept. of Landscape Architecture > > > > =========================================================================== > > 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". > > > > Get the localToVworld transformation A of the Viewplatform. Then > calculate the inverse A^-1 then calculate the transforamtion in the > local coordinate system B and set the combination of the 3 > transformations: A * B * (A^-1). > Hope i got the right order. Example code can be found in the j3d.org > repositiry. Look for DefaultManipulator class in the > org.j3d.input.spaceball.transformation package. > > regards > Paul > > =========================================================================== > 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".
