Howto:Add blackout and redout settings: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
m (Grammer, indentation, {{repo link}} ;), link)
Line 10: Line 10:
* <code>parameters/redout-complete-g</code> (double)
* <code>parameters/redout-complete-g</code> (double)


These proprties can be controlled at runtime or be added to any [[PropertyList XML files|PropertyList XML file]], for example an [[aircraft-set.xml]] or your own [[FlightGear configuration via XML|configuration file]].
These properties can be controlled at runtime or be added to any [[PropertyList XML files|PropertyList XML file]], for example an [[aircraft-set.xml]] or your own [[FlightGear configuration via XML|configuration file]].


== Example ==
== Example ==

Revision as of 15:47, 27 May 2015

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 properties 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