Jim Wilson writes: >Sam Varner <[EMAIL PROTECTED]> said: > >> My model uses a rotation matrix to specify its orientation. But it >> looks like FlightGear wants Euler angles. Is there funcitonality for >> converting from one to the other in FG or PLIB? >Yes in Plib.
Eventually anything displayed by SSG, the SceneGraph component of PLib, has its orientation specified by a rotation matrix. So it may be you do not need to go from Matrix to Euler Angles and back again to a Matrix. My guess is that your orientation is with respect to the local tangent plane and this may in fact be good enough as is, if not it certainl;y is no more then a Matrix multiply away :-) >> Also, I'm using a >> cartesian vector for position. Is there a good way of converting to >> geocentric coordinates? >That's in SimGear. Take a look at location.cxx in cvs for >usage of both in FlightGear. Main / Location.hxx is a good place to start looking but my question is what does your 'cartesian vector' represent ? It could well be that there is a 'short cut' you can take as geocentric coordinates are also a 'cartesian vector'. Hard to tell you exactly what is the 'best approach' for you to take with out a little more info Note that I may be a little vague as to exactly what Matrix you want to use to transform your vectors in that others are restructuring the pipeline but I believe that the one you are probably most interested in is still called UP This represents the surface normal's orientation matrix at the current location Cheers Norman _______________________________________________ Flightgear-devel mailing list [EMAIL PROTECTED] http://mail.flightgear.org/mailman/listinfo/flightgear-devel
