Draw masks: Difference between revisions

Jump to navigation Jump to search
1,753 bytes added ,  29 December 2015
No edit summary
Line 21: Line 21:




== Cockpit ==
{{FGCquote
|1= How to hide cockpit when in Helicopter view or any outside view of the aircraft? My graphic card is weak, so many aircrafts that don't hide the cockpit when I change to Helicopter view will kill the smoothness...
|2= {{cite web
  | url    = http://forum.flightgear.org/viewtopic.php?p=248387#p248387
  | title  = <nowiki>Hide cockpit at Helicopter view?</nowiki>
  | author = <nowiki>Jiawen</nowiki>
  | date  = Jun 24th, 2015
  | added  = Jun 24th, 2015
  | script_version = 0.23
  }}
}}
{{FGCquote
|1= I think he wants to only load the exterior model for better performance, as far as I know, there is no simple way to do that.
|2= {{cite web
  | url    = http://forum.flightgear.org/viewtopic.php?p=270503#p270503
  | title  = <nowiki>Re: Hide cockpit at Helicopter view?</nowiki>
  | author = <nowiki>firefly</nowiki>
  | date  = Dec 29th, 2015
  | added  = Dec 29th, 2015
  | script_version = 0.23
  }}
}}
{{FGCquote
|1= It would be possible to allow dynamic draw masks to be configured "on demand", so that certain XML/model files could be loaded into a corresponding branch of the scenegraph, so that a new draw-mask property shows up in /sim/rendering/draw-masks, e.g. '''/sim/rendering/draw-masks/cockpit'''
The model loader would need to be patched to parse such annotations (e.g. XML tags/attributes) so that the corresponding osg::Switch node can be added and a visitor registered to update it based on toggling a property.
|2= {{cite web
  | url    = http://forum.flightgear.org/viewtopic.php?p=270508#p270508
  | title  = <nowiki>Re: Hide cockpit at Helicopter view?</nowiki>
  | author = <nowiki>Hooray</nowiki>
  | date  = Dec 29th, 2015
  | added  = Dec 29th, 2015
  | script_version = 0.23
  }}
}}
== Scenery ==
== Scenery ==
{{FGCquote
{{FGCquote

Navigation menu