Level Of Detail (LOD) Ranges: Difference between revisions

Jump to navigation Jump to search
→‎Forum topics: + Forum topic that touches on not using LOD range animations in scenery models
(+- Minor cleanup; +- Updating some values; + Related wiki article and source files; cat: Rendering)
(→‎Forum topics: + Forum topic that touches on not using LOD range animations in scenery models)
(One intermediate revision by one other user not shown)
Line 7: Line 7:
! Property !! Default !! Description
! Property !! Default !! Description
|-
|-
| <code>sim/static-lod/detailed</code> || 1500 m ||All objects (buildings etc) display withing this range.
| <code>sim/rendering/static-lod/detailed</code> || 1500 m ||All objects (buildings etc) display withing this range.
* Building meshes using OBJECT_BUILDING_MESH_DETAILED (Additional 1414 m is added as these meshes are 2000 x 2000 m)
* Building meshes using OBJECT_BUILDING_MESH_DETAILED (Additional 1414 m is added as these meshes are 2000 x 2000 m)
* The actual visibility range is randomly distributed from <code>/sim/static-lod/rough</code> to twice <code>/sim/static-lod/rough</code>, to reduce apparent "popping".
* The actual visibility range is randomly distributed from <code>/sim/static-lod/rough</code> to twice <code>/sim/static-lod/rough</code>, to reduce apparent "popping".
|-
|-
| <code>/sim/static-lod/rough</code> || 7500 m || Terrain and non terrain objects will be displayed within this range, as follows:
| <code>/sim/rendering/static-lod/rough</code> || 7500 m || Terrain and non terrain objects will be displayed within this range, as follows:
* Objects listed in scenery STG files using OBJECT_STATIC or OBJECT_SHARED verbs
* Objects listed in scenery STG files using OBJECT_STATIC or OBJECT_SHARED verbs
* Random scenery objects
* Random scenery objects
Line 20: Line 20:
The actual visibility range is randomly distributed from <code>/sim/static-lod/rough</code> to twice <code>/sim/static-lod/rough</code>, to reduce apparent "popping".
The actual visibility range is randomly distributed from <code>/sim/static-lod/rough</code> to twice <code>/sim/static-lod/rough</code>, to reduce apparent "popping".
|-
|-
| <code>/sim/static-lod/bare</code> || 21000 m || Only terrain after this point
| <code>/sim/rendering/static-lod/bare</code> || 21000 m || Only terrain after this point
|}
|}


== AI/MP ranges ==
== AI/MP ranges ==
AI/MP models (other models that aren't being flown/operated by the user) have two models. The first of these is the low detail (or fallback) model, which can be defined by an model developer (<code>sim/model/fallback-model-index</code>) as one of the values in <code>$FGData/AI/Aircraft/fallback_models.xml</code>. When there is no fallback model defined for a model the blue-yellow glider will be used.
AI/MP models (other models that aren't being flown/operated by the user) have two models. The first of these is the low detail (or fallback) model, which can be defined by an model developer (<code>sim/model/fallback-model-index</code>) as one of the values in <code>$FGData/AI/Aircraft/fallback_models.xml</code>. When there is no fallback model defined for a model the blue-yellow glider will be used.


Line 32: Line 33:
! Property !! Default !! Description
! Property !! Default !! Description
|-
|-
| <code>/sim/static-lod/aimp-range-mode-distance</code> || false || When true the distances in the following aimp- properties are considered to be the distance from the camera.
| <code>/sim/rendering/static-lod/aimp-range-mode-distance</code> || false || When true the distances in the following aimp- properties are considered to be the distance from the camera.
|-
|-
| <code>/sim/static-lod/aimp-detailed</code> || 400 px || This property works differently depending on the range mode.  
| <code>/sim/rendering/static-lod/aimp-detailed</code> || 400 px || This property works differently depending on the range mode.  
* In pixel mode it is the size (in pixels) of the object on screen. When greater than this amount of pixels the detailed model will be used
* In pixel mode it is the size (in pixels) of the object on screen. When greater than this amount of pixels the detailed model will be used
* In range mode it is the distance from the viewpoint, when within this range the detailed model will be used.
* In range mode it is the distance from the viewpoint, when within this range the detailed model will be used.
|-
|-
| <code>/sim/static-lod/aimp-bare</code> || 0 px || This property works differently depending on the range mode.  
| <code>/sim/rendering/static-lod/aimp-bare</code> || 0 px || This property works differently depending on the range mode.  
* In pixel mode it is the maximum size (in pixels) of the object on screen. When below this amount the low detail (fallback) model will be used. It is possible to set this to a non-zero value to stop drawing anything when close (although quite why anyone would want to do that is beyond me), and thus a value of 0 is the expected usage of this in pixel mode.
* In pixel mode it is the maximum size (in pixels) of the object on screen. When below this amount the low detail (fallback) model will be used. It is possible to set this to a non-zero value to stop drawing anything when close (although quite why anyone would want to do that is beyond me), and thus a value of 0 is the expected usage of this in pixel mode.
* In range mode it is the distance from the viewpoint, when above this distance the low detail model will be used.
* In range mode it is the distance from the viewpoint, when above this distance the low detail model will be used.
Line 48: Line 49:
! Property !! Default !! Description
! Property !! Default !! Description
|-
|-
| <code>/sim/static-lod/aimp-interior</code> || 200 m || Range at which to display the model interior (when the model has a mesh defined as being the interior).
| <code>/sim/rendering/static-lod/aimp-interior</code> || 200 m || Range at which to display the model interior (when the model has a mesh defined as being the interior).
|}
|}


Line 54: Line 55:
=== Wiki articles ===
=== Wiki articles ===
* [[FlightGear configuration via XML]].  See in particular the section [[FlightGear configuration via XML#Adding your own settings|Adding your own settings]].
* [[FlightGear configuration via XML]].  See in particular the section [[FlightGear configuration via XML#Adding your own settings|Adding your own settings]].
=== Forum topics ===
* {{forum link|t=37353|title=3d models, how to produce them in an understandable way}} (April 2020-) - Touches on the subject of not using LOD range animations in scenery models.


=== Source code ===
=== Source code ===

Navigation menu