Howto:Add blackout and redout settings: Difference between revisions
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...") |
Red Leader (talk | contribs) 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| | 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> | |||
<!-- ... --> | |||
<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> | </PropertyList> | ||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 39: | Line 39: | ||
== Related content == | == Related content == | ||
=== Source === | === Source === | ||
* | * {{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 .
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>