Default head-up display: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 77: Line 77:


Since FlightGear 0.9.10 there is ''also'' a newer and more flexibly HUD-system available. An example can be found at
Since FlightGear 0.9.10 there is ''also'' a newer and more flexibly HUD-system available. An example can be found at
:<tt>$FG_ROOT/Huds/default.xml</tt> and documentation at
:<tt>$FG_ROOT/Huds/NTPS.xml</tt> and documentation at
:<tt>$FG_ROOT/Docs/README.hud</tt>.
:<tt>$FG_ROOT/Docs/README.hud</tt>.
Also have a look at <tt>$FG_ROOT/Huds/README</tt>.
Also have a look at <tt>$FG_ROOT/Huds/README</tt>.


== preferences.xml ==
== preferences.xml ==
While the instruments and their behaviour are set in the Huds-directory, the basic settings and the look regarding to any HUD are set in <tt>$FG_ROOT/preferences.xml</tt>. Search the file for <tt><hud></tt> and you will find a list of properties. For a short description of those have a look at [[#Property_tree|property tree]].
While the instruments and their behaviour are set in the Huds-directory, the basic settings and the look regarding to any HUD are set in <tt>$FG_ROOT/preferences.xml</tt>. Search the file for <tt><hud></tt> and you will find a list of properties. For a short description of those have a look at [[#Property_tree|property tree]]. But I'll give some of them a closer look:


=== Colour ===
The prefered thing one would like to customize is, I guess, the HUDs colour.


Discover your own settings is quite easy: Access the property tree via the Menu  <tt>File --> Browse Internal Properties</tt> or via the [[Property_Tree#Property_server|Property server]] and your browser. Go to sim/hud/color, e.g. http://localhost:5500/sim/hud/color, edit a value and watch the result in FlightGears window instantly.
Once the decision is made copy one of the <color n="x">-tags and paste it on top of the colours within the <palette>-tag. ... Interrupted ... to be continued ...
=== Path ===


== Property tree ==
== Property tree ==
More information about FlightGears property tree and how to access it can be found at its page: [[Property_Tree|Property Tree]].
More information about FlightGears property tree and on how to access it can be found at its page: [[Property_Tree|Property Tree]].


Paths starting with '$FG_ROOT/' apply to the file system, the others are intra-property tree.
Paths starting with '$FG_ROOT/' apply to the file system, the others are intra-property tree.
Line 93: Line 100:
   current-color  (0|1|2...)    One out of /sim/hud/palette
   current-color  (0|1|2...)    One out of /sim/hud/palette
   enable3d        (false|true)  hud n=0 3D off|on
   enable3d        (false|true)  hud n=0 3D off|on
   enable3d[n]    (false|true)  hud n=n 3D off|on
   enable3d[1]    (false|true)  hud n=1 3D off|on
   frame-stat-type (tris|???)    ???
   frame-stat-type (tris|???)    ???
   path            (Huds/...)    Path to hud n=0
   path            (Huds/...)    Path to hud n=0
   path[n]        (Huds/...)    Path to hud n=n
   path[1]        (Huds/...)    Path to hud n=1
   visibility      (false|true)  hud n=0 hidden|visible
   visibility      (false|true)  hud n=0 hidden|visible
   visibility[1]  (false|true)  hud n=n hidden|visible
   visibility[1]  (false|true)  hud n=1 hidden|visible
  /sim/hud/color/                Contains settings of current-color
  /sim/hud/color/                Contains settings of current-color
     alpha        (0...1)      0=invisible, 1=nontransparent
     alpha        (0...1)      0=invisible, 1=nontransparent
392

edits