STG Verbs: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(Created page with "{{Stub}} Update 09/2016: Stuart committed the code to enable two new STG verbs: * OBJECT_BUILDING_MESH_ROUGH * OBJECT_BUILDING_MESH_DETAILED To enable the reading of these...")
 
No edit summary
Line 1: Line 1:
{{Stub}}
{{Stub}}


Update 09/2016: Stuart committed the code to enable two new STG verbs:  
Update 09/2016: Stuart committed the code to enable two new STG verbs:  
* OBJECT_BUILDING_MESH_ROUGH  
* OBJECT_BUILDING_MESH_ROUGH  
* OBJECT_BUILDING_MESH_DETAILED  
* OBJECT_BUILDING_MESH_DETAILED  
These were introduced to Modify FG to recognie the new STG verb and add controls to enable/disable loading these models and logic to disable the random objects and buildings for tiles (or better sub-tiles) when these are enabled and exist.<ref>{{cite web
  |url    =  https://sourceforge.net/p/flightgear/mailman/message/35360933/
  |title  =  <nowiki> Re: [Flightgear-devel] Maldives, once again ;) </nowiki>
  |author =  <nowiki> Stuart Buchanan </nowiki>
  |date  =  Sep 10th, 2016
  |added  =  Sep 10th, 2016
  |script_version = 0.40
  }}</ref>
To enable the reading of these verbs you will need to set /sim/rendering/building-mesh=true and obviously reload scenery.<ref>{{cite web
To enable the reading of these verbs you will need to set /sim/rendering/building-mesh=true and obviously reload scenery.<ref>{{cite web
   |url    =  https://sourceforge.net/p/flightgear/mailman/message/35385866/  
   |url    =  https://sourceforge.net/p/flightgear/mailman/message/35385866/  

Revision as of 16:53, 24 September 2016

This article is a stub. You can help the wiki by expanding it.


Update 09/2016: Stuart committed the code to enable two new STG verbs:

  • OBJECT_BUILDING_MESH_ROUGH
  • OBJECT_BUILDING_MESH_DETAILED

These were introduced to Modify FG to recognie the new STG verb and add controls to enable/disable loading these models and logic to disable the random objects and buildings for tiles (or better sub-tiles) when these are enabled and exist.[1]


To enable the reading of these verbs you will need to set /sim/rendering/building-mesh=true and obviously reload scenery.[2]

as the name suggests, loads buildings and sets LOD to /sim/rendering/static-lod/rough and /sim/rendering/static-lod/detailed respectively. The verbs are only parsed by the STG loader if /sim/rendering/osm-buildings=true so there will be no runtime or loadtime impact on systems with this disabled. The reason for the two verbs is to allow osm2city to generate two levels of LOD for larger and smaller buildings. It currently does this by generating a single model with two meshes, one for each LOD level. Rather than do this within the model, I think it's more effective to handle this in the STG loader as two separate models and simplify the scenegraph by saving an extra LOD node.[3]