From: Serge Kourdakov (serge++at++sat-sim.org)
Date: 08/29/2002 02:50:51
Hi Ken
you wrote.
-----------------------------------------------------
Given psi,theta and phi (in WGS84 coords) and a local lat/lon, does
anybody have a good algorithm for calculating the flatearth HPR for
performer? I've searched the archives and found several references on
converting wgs and lat,lon to xyz, but I haven't been able to find any
references to converting the orientation. Thanks.
------------------------------------------------------
My idea is that though angles could be different
http://mathworld.wolfram.com/EulerAngles.html
or
http://users.ece.gatech.edu/~slabaugh/personal/research/euler/euler.pdf
etc ....
the resulting cosine direction matrix should be the same (though just maybe
I'm wrong ..).
Thus you might compute cosine direction matrix in one set of angles .
Then extract angles in another way to present rotations ...
So take a look at pdf for some hints how to extract angles for the matrix..
And the way might be such as - using your psi,theta and phi you get a
matrix as described in
http://users.ece.gatech.edu/~slabaugh/personal/research/euler/euler.pdf
then using procedure like described in this doc extract angles for Performer
rotation matrix....
Regards
Serge
http://www.vrtainment.de
This archive was generated by hypermail 2b29 : Fri Aug 30 2002 - 00:01:50 PDT