* Melchior FRANZ -- Friday 04 May 2007:
> "Fly-By View"  This picks a view position somewhere
> ahead and lets the aircraft fly by, then searches a new position
> etc.

* gh.robin -- Friday 04 May 2007:
> If my understanding is right,
> I guess that tool will be useful when , during model devel, we
> try totune complexe animations, (survey/observation  from to a
> specific  point

Can certainly be used for that, but it's not really meant to be
useful for anything but for looking nice. For specific needs it's
probably better to write a separate <view> entry and to copy
and modify the view.flyby container. The whole logic is in there.

BTW: this does also use the new "terrain-elevation" fgcommand,
to make sure the view position is never under terrain.  :-)



> To select a view with particular node index (e.g. the
> aircraft's <view n="100">, one can write that as negative number:
> 
>   setprop("/sim/current-view/view-number", -100);

The best way is probably to forget about those numbers, and to
address the view by name, for example via hash:

  var view = {};
  var nodes = props.globals.getNode("/sim").getChildren("view");
  forindex (var i; nodes)
      view[nodes[i].getNode("name").getValue()] = i;

  setprop("/sim/current-view/view-number", view["Copilot View"]);

m.

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Flightgear-devel mailing list
Flightgear-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/flightgear-devel

Reply via email to