Hugo Eide Gunnarsen (hugogu++at++hugogu.oslo.sgi.com)
Wed, 3 Dec 1997 16:13:50 +0100
I am not sure abot how to do this, and I have still not found any "ready"
solutions from my 3D-graphics books.
The reason I would like to solve this, is that one animation packet
(explore) rotates the object around X,Y,Z axis (not the new transformed
axes as with HPR). So as long as the rotation is only happening around his
Y-axis this is the same as setting the heading, but when he also rotates
around the Z-axis (the in the same coordinate system as the Y) I need
to set both Pitch and Roll to end up with the same rotation.
So I wonder if this will be the same as an X/Y/Z rotation :
Mr=makeRot(Xr,1,0,0)*makeRot(Yr,0,1,0)*makeRot(Zr,0,0,1);
Even if this is the correct way, it will require a LOT more processing
that just a simple setRot(h,p,r).
So what I really would like to have, is a matrix that I can use to do
this in one operation instead of 3 (and I still think that my Mr will be
the same as h,p,r).
--Hugo Eide Gunnarsen Mob: +47 92887631 If it ain't broke, hugogu++at++oslo.sgi.com Work: +47 67114631 it doesn't have Silicon Graphics AS Direct: +47 67114600 enough features yet.
No fortune generated, out of luck.
======================================================================= List Archives, FAQ, FTP: http://www.sgi.com/Technology/Performer/ Submissions: info-performer++at++sgi.com Admin. requests: info-performer-request++at++sgi.com
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:56:20 PDT