Howto:Add blackout and redout settings

From FlightGear wiki
Revision as of 15:17, 27 May 2015 by Red Leader (talk | contribs) (Grammer, indentation, {{repo link}} ;), link)
Jump to navigation Jump to search

This is how to add blackout and redout settings to an aircraft. These settings will determine when the view will start to turn black or red and when it will be fully black or red due to g-force This is a link to a Wikipedia article.

Involved properties

Blackout and redout are controlled through these properties in /sim/rendering/redout/:

  • enabled (bool)
  • parameters/blackout-onset-g (double)
  • parameters/blackout-complete-g (double)
  • parameters/redout-onset-g (double)
  • parameters/redout-complete-g (double)

These proprties can be controlled at runtime or be added to any PropertyList XML file, for example an aircraft-set.xml or your own configuration file.

Example

This example show how these setting can be added to a propertylist xml file:

<PropertyList>
<!-- ... -->
<sim>
    <!-- ... -->
    <rendering>
        <redout>
            <enabled type="bool" userarchive="y">true</enabled>
            <parameters>
                <blackout-onset-g>6</blackout-onset-g>
                <blackout-complete-g>8</blackout-complete-g>
                <redout-onset-g>-2</redout-onset-g>
                <redout-complete-g>-4</redout-complete-g>
            </parameters>
        </redout>
    </rendering>
    <!-- ... -->
</sim>
<!-- ... -->
</PropertyList>

Related content

Source