Level Of Detail (LOD) Ranges: Difference between revisions

Jump to navigation Jump to search
(Fixed radius no longer added to BUILDING meshes)
Line 28: Line 28:
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.


There are three properties that control the operation of the LOD ranges for
AI/MP ranges can either bet set as pixels of the object on screen, or distance from the viewer in meters.  This is controlled by the <code>/sim/rendering/static-lod/aimp-range-mode-distance</code> property.
We also have the following settings used for AI models:
{| class="wikitable"
{| class="wikitable"
|-
|-
! Property !! Default !! Description
! Property !! Default !! Description
|-
|-
| <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/rendering/static-lod/aimp-range-mode-distance</code> || false || Configures the range mode:
 
* If set to false the values of <code>/sim/rendering/static-lod/aimp-detailed</code> and <code>/sim/rendering/static-lod/aimp-bare</code> are pixels on the screen.  This is default.
* If set to true, the values are distance from the camera in meters.
|-
|-
| <code>/sim/rendering/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.  
Line 43: Line 45:
* 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.
|}
== Model interiors ==
{| class="wikitable"
|-
! Property !! Default !! Description
|-
|-
| <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).
|<code>/sim/rendering/static-lod/aimp-interior</code>
|200m
|Range at which to display the model interior (when the model has a mesh defined as being the interior).
|}
|}


Navigation menu