Howto:Add blackout and redout settings: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(Created page with "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 bl...")
 
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 can be controlled at runtime or be added to any [[PropertyList XML files|propertylist]] XML file, for example [[aircraft-set.xml]] or your own [[FlightGear configuration via XML|configuration file]].
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]].


== Example ==
== Example ==
Line 17: Line 17:
<syntaxhighlight lang="xml">
<syntaxhighlight lang="xml">
<PropertyList>
<PropertyList>
<!-- ... -->
<!-- ... -->
<sim>
<sim>
  <!-- ... -->
    <!-- ... -->
  <rendering>
    <rendering>
  <redout>
        <redout>
    <enabled type="bool" userarchive="y">true</enabled>
            <enabled type="bool" userarchive="y">true</enabled>
    <parameters>
            <parameters>
    <blackout-onset-g>6</blackout-onset-g>
                <blackout-onset-g>6</blackout-onset-g>
    <blackout-complete-g>8</blackout-complete-g>
                <blackout-complete-g>8</blackout-complete-g>
    <redout-onset-g>-2</redout-onset-g>
                <redout-onset-g>-2</redout-onset-g>
    <redout-complete-g>-4</redout-complete-g>
                <redout-complete-g>-4</redout-complete-g>
    </parameters>
            </parameters>
  </redout>
        </redout>
  </rendering>
    </rendering>
  <!-- ... -->
    <!-- ... -->
</sim>
</sim>
<!-- ... -->
<!-- ... -->
</PropertyList>
</PropertyList>
</syntaxhighlight>
</syntaxhighlight>
Line 39: Line 39:
== Related content ==
== Related content ==
=== Source ===
=== Source ===
* FGData/Nasal/[http://sourceforge.net/p/flightgear/fgdata/ci/next/tree/Nasal/redout.nas redout.nas]
* {{repo link|site=sf|proj=flightgear/fgdata|type=git|path=Nasal/redout.nas|pre=FGData}}




[[Category:Aircraft enhancement]]
[[Category:Aircraft enhancement]]
[[Category:Howto]]
[[Category:Howto]]

Revision as of 15:17, 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 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