STG Verbs

From FlightGear wiki
Revision as of 16:53, 24 September 2016 by Hooray (talk | contribs)
Jump to navigation Jump to search
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]