In src/Main/viewmgr.cxx I found:

  setPilotXOffset_m(fgGetDouble("/sim/current-view/x-offset-m"));
  setPilotYOffset_m(fgGetDouble("/sim/current-view/y-offset-m"));
  setPilotZOffset_m(fgGetDouble("/sim/current-view/z-offset-m"));

This looks like it needs to be set in the global preferences file
though.  I need a way to set the pilot view offset in the
<aircraft>-set.xml file (i.e. on a per aircraft basis.)

Then I also need a way to do a similar z offset for the 3d model of
the aircraf so it isn't half buried in the ground at startup.

Anyone have any ideas?

Curt.


Norman Vine writes:
> Curtis L. Olson writes:
> 
> > I am working on interfacing an external flight model to FlightGear via
> > the network.  This particular code reports an altitude of zero/0.0f
> > when the wheels are resting at sea level.
> > 
> > The c172 3d model is drawn so that it's center of gravity is at the
> > reported altitude.  Also the pilot view point is also relative to this
> > altitude.
> > 
> > This means that on the ground, the out-the-window view point is just a
> > few inches above the pavement.  And also the 3d model is sunk into the
> > ground.
> > 
> > What do I need to do to get the pilot view point and the center of the
> > 3d model up to the correct altitude?
> 
> It used to be 
> --prop:/sim/model/z-offset="offset in meters"
> 
> but I guess it's
> --prop:/sim/model/offsets/z-m=X
> 
> now,   but I am  not sure if this info is actually available
> At least I couldn't find it with the httpd interface
> the closest thing I got was the "path name to" the model
> 
> tempting-to-say-data-should-actually-be-in-C'ly yr's
> 
> Norman
> 
> 
> 
> _______________________________________________
> Flightgear-devel mailing list
> [EMAIL PROTECTED]
> http://mail.flightgear.org/mailman/listinfo/flightgear-devel

-- 
Curtis Olson   IVLab / HumanFIRST Program       FlightGear Project
Twin Cities    [EMAIL PROTECTED]                  [EMAIL PROTECTED]
Minnesota      http://www.menet.umn.edu/~curt   http://www.flightgear.org

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

Reply via email to