LOD Bias

From The DarkMod Wiki
Revision as of 15:40, 10 March 2015 by Nbohr1more (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The spawnargs min_lod_bias (default: 0.0) and max_lod_bias (default: 10.0) make entities disappear, change skin, or open/close portals 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 works from v1.08 onwards, in v1.07 the spawnargs are ignored. 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.

Spawnargs

min_lod_bias
max_lod_bias
lod_hidden_skin - when set, the entity will not be hidden, but instead just switches to this skin

func_portal

func_portal entities are special. Instead of getting hidden or shown, they will close (or open) the visportal they touch.

This can be used to make portals close for lower quality settings. In combination with a window with a transparent skin and lod_hidden_skin set to a solid skin, the window can thus be either opaque, or transparent, depending on quality setting.

Examples

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

"min_lod_bias" "1.0"

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

"min_lod_bias" "1.5"

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

"min_lod_bias" "0.75"

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

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

See also