I want to add targets in a multiplayer fgfs session from data
generated by an external system, and would like some guidance on
the coordinate system.

The data exchanged in the multiplayer frames consist of
  sgMat4  PlayerPos;

which is defined in plib as
  typedef SGfloat sgMat4  [4][4] ;

which has some elaborate conversion routines, such as

  void sgMakeCoordMat4 ( sgMat4 m, const SGfloat x, const SGfloat y, const SGfloat z,
       const SGfloat h, const SGfloat p, const SGfloat r )

However, I couldn't find a description of these coordinates.
Are the inputs to sgMakeCoordMat4 in lat/lng/alt or in
geocentric x, y, z measured from the center of the earth?  Are
there plib (or fgfs) routines to convert from lat/lng/alt to
sgMat4?

Is there any fm that describes this that I should rtfm?

Wendell


_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to