Lets say your primitive is held in a TransformGroup TG. The getLocalToVworld(X) method gives you the transform which would convert the position of TG to world co-ordinates. BUT, TG could have a Transform3D itself which moved your shape, so you need to multiply the transform X by TG.inverse() - but I'm not sure which way around!
Tony -----Original Message----- From: Raul Rios [mailto:[EMAIL PROTECTED]] Sent: 04 September 2002 08:54 To: [EMAIL PROTECTED] Subject: [JAVA3D] HOW CAN I KNOW THE TRANSFORMATION OVER A SCENE GRAPH NODE ? Given a scene graph node (a shape3d, a Primitive, etc), I need to know which is the total transformation (actually only the translation, not the rotation) realtive to the origin applied over this node. This can help you to understand what I need: I pick an 3D object (tree, house, etc..) in my Canvas3D and I want to move (translate) the camera (view) to the point where this object is placed over the terrain, but I can�t get its real coordinates because, for instance, all the houses in the scene are the same Shape3D (a 3D model centered at the the origin (0,0,0)) which I place in different coordinates with TransformGroup nodes. ...help? Thank you. ==========================================================================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".
