LOD Bias

From The DarkMod Wiki
Revision as of 16:37, 5 May 2012 by Tels (talk | contribs) (add usage instructions)
Jump to navigationJump to search

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