LOD Bias

From The DarkMod Wiki
Revision as of 16:20, 5 May 2012 by Tels (talk | contribs) (add)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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.

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

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