LOD Bias: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
Tels (talk | contribs)
add
 
Tels (talk | contribs)
add usage instructions
Line 1: Line 1:
The spawnargs '''min_lod_bias''' (default: 0) and '''max_lod_bias''' (default: 10) make entities disappear when the value of cv_lod_bias (e.g. the setting "Object detail" in the menu) is either lower than '''min_lod_bias''' or higher than '''max_lod_bias'''.
The spawnargs '''min_lod_bias''' (default: 0.0) and '''max_lod_bias''' (default: 10.0) make entities disappear when the value of cv_lod_bias (e.g. the setting "Object detail" in the menu) is either lower than '''min_lod_bias''' or higher than '''max_lod_bias'''.


{{infobox|bg=#ffa0a0|This only works from v1.08 onwards. Also, if you use these spawnargs, then the entity cannot have the normal LOD thinking. So use this only for static models manually placed in a map.}}
{{infobox|bg=#ffa0a0|This only works from v1.08 onwards. Also, if you use these spawnargs, then the entity cannot have the normal LOD thinking. So use this only for static models manually placed in a map.}}
Line 11: Line 11:
* 2.0 - Higher
* 2.0 - Higher
* 3.0 - Very high
* 3.0 - Very high
== Usage ==
These settings should not be used for any entities the player could interact with, like food, potions, moveables etc. They are intended for entities that provide a pure visual difference.
Good examples are: vegetation, distant objects in places the player cannot reach (skyboxes, behind fences or gates, or on roof), particle emitters (f.i. have only a few chimneys smoke on low visual detail) etc.


== Examples ==
== Examples ==

Revision as of 16:37, 5 May 2012

The spawnargs min_lod_bias (default: 0.0) and max_lod_bias (default: 10.0) make entities disappear when the value of cv_lod_bias (e.g. the setting "Object detail" in the menu) is either lower than min_lod_bias or higher than max_lod_bias.

This only works from v1.08 onwards. Also, if you use these spawnargs, then the entity cannot have the normal LOD thinking. So use this only for static models manually placed in a map.

The values for the menu setting are:

  • 0.5 - Very low
  • 0.75 - Low
  • 1.0 - Normal
  • 1.5 - High
  • 2.0 - Higher
  • 3.0 - Very high

Usage

These settings should not be used for any entities the player could interact with, like food, potions, moveables etc. They are intended for entities that provide a pure visual difference.

Good examples are: vegetation, distant objects in places the player cannot reach (skyboxes, behind fences or gates, or on roof), particle emitters (f.i. have only a few chimneys smoke on low visual detail) etc.

Examples

Make an entity only appear when the menu setting is at least Normal:

"min_lod_bias" "1.0"

Make an entity only appear when the menu setting is at least High:

"min_lod_bias" "1.5"

Make an entity only appear when the menu setting is at least Low:

"min_lod_bias" "0.75"

Make an entity only appear when the menu setting is Very low or Low:

"min_lod_bias" "0"
"max_lod_bias" "0.75"

See also