Euler angles from a SoTransform Node

Euler angles from a SoTransform Node

Post by jfor.. » Thu, 19 Aug 1999 04:00:00



Hi

I want to know if it is possible obtein the pitch,roll and yaw
from a SoTransform Node.

Thanks

   Juan

Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.

 
 
 

Euler angles from a SoTransform Node

Post by Mike Hec » Thu, 26 Aug 1999 04:00:00



> I want to know if it is possible obtein the pitch,roll and yaw
> from a SoTransform Node.

Yes, see the algorithm (and code) in Graphics Gems IV.

-Mike
 TGS Inc, http://www.tgs.com

 
 
 

Euler angles from a SoTransform Node

Post by Bruce Bail » Tue, 31 Aug 1999 04:00:00


|> NNTP-Posting-Host: 209.218.102.9

|> X-Trace: news1.rdc1.sdca.home.com 935613234 209.218.102.9 (Wed, 25 Aug 1999
|> 13:33:54 PDT)
|> NNTP-Posting-Date: Wed, 25 Aug 1999 13:33:54 PDT
|> Xref: news.corp.sgi.com comp.graphics.api.inventor:9662
|>
|> > I want to know if it is possible obtein the pitch,roll and yaw
|> > from a SoTransform Node.
|>
|> Yes, see the algorithm (and code) in Graphics Gems IV.
|>
|> -Mike
|>  TGS Inc, http://www.tgs.com

How about:
----------------------------------------------------------------------
SoTransform  *trans;
SbMatrix     mat, matI;
float        thetaX, thetaY, thetaZ;

trans.getRotationSpaceMatrix(mat, matI);

thetaX = fasin(mat[2][1]);
thetaY = fasin(mat[0][2]);
thetaZ = fasin(mat[1][0]);

 
 
 

1. Euler rotational angles from SoTransform ?

Having a little trouble getting the euler angles from a SoTransform
node. The best I can think of is getting the axis + angles and working
it out by hand..

Is there a better way ? Although quaternions are wonderful, I
desperately need access to the individual angles.

cheers,

Paul

2. Source of more info on scripting languages?

3. CCW euler angles to CW euler angles

4. Input device for precision?

5. euler angles to axis/angle

6. The "jaggies"

7. Axis Angle To Euler Angles

8. CML Explorer docs

9. Euler angles --> Angle axis vector

10. Which one is better: using SoMultipleCopy node or use SoTransform

11. Writing own SoTransform nodes in Inventor 2.0

12. Calculator between SoTransform-Nodes

13. . Vis. Euler angles on cubic lattices