Editing Lightgrid

Jump to: navigation, search

Warning: You are not logged in.

Your IP address will be recorded in this page's edit history.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 1: Line 1:
{{need screenshot}}
 
{{grammar}}
 
 
A three-dimensional data structure used to store static lighting on models. Lightgrid are created during [[LIGHT phase]] each time map is compiled.
 
A three-dimensional data structure used to store static lighting on models. Lightgrid are created during [[LIGHT phase]] each time map is compiled.
  
====How it works====
+
===How it works===
  
 
Each cell of lightgrid stores this information:
 
Each cell of lightgrid stores this information:
Line 12: Line 10:
 
When rendered, entity sample it's position at lightgrid and get average ambient and diffuse components to be applied during shading. Any entity that doesnt use lightmaps and not fullbright, is, by default, lit with lightgrid.
 
When rendered, entity sample it's position at lightgrid and get average ambient and diffuse components to be applied during shading. Any entity that doesnt use lightmaps and not fullbright, is, by default, lit with lightgrid.
  
====Resolution====
+
===Resolution===
 
Lightgrid resolution on a particular map comes from it's bounds and cell size.
 
Lightgrid resolution on a particular map comes from it's bounds and cell size.
  
Line 21: Line 19:
 
Often map bounds is much bigger than the space players and NPC can walk in. To not waste memory and reduce map compile time, level designer should place a brush covered by [[Common materials | common/lightgrid]] material. That brush will set the area where lightgrid will be calculated and applied.
 
Often map bounds is much bigger than the space players and NPC can walk in. To not waste memory and reduce map compile time, level designer should place a brush covered by [[Common materials | common/lightgrid]] material. That brush will set the area where lightgrid will be calculated and applied.
  
====Corrections====
+
===Corrections===
 
Sometimes lightgrid is lighter or darker that the rest of environments which makes entities to look out of the place.  
 
Sometimes lightgrid is lighter or darker that the rest of environments which makes entities to look out of the place.  
  
Line 29: Line 27:
  
 
==Console variables==
 
==Console variables==
{{cvar|r_ambient|adds intensity to lightmap and lightgrid. Positive values makes map brighter (note: manual edit of this cvar via console does not work in Blood Omnicide, as cvar is controlled by gamecode).}}
+
* r_ambient - adds intensity to lightmap and lightgrid. Positive values makes map brighter (note: manual edit of this cvar via console does not work in Blood Omnicide, as cvar is controlled by gamecode).
{{cvar|r_fullbright|disables static lighting.}}
+
* r_fullbright - disables static lighting.
  
 
==See also==
 
==See also==
* [[Darkplaces lighting]]
 
 
* [[Lightmap]]
 
* [[Lightmap]]
* [[Vertex lighting]]
 
  
 
[[Category:Glossary]]
 
[[Category:Glossary]]
[[Category:Darkplaces engine]]
 
[[Category:Lighting]]
 
{{finished}}
 
 
__NOTOC__
 
__NOTOC__

Please note that all contributions to Blood Wiki are considered to be released under the Creative Commons Attribution Share Alike (see BloodWiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

Cancel | Editing help (opens in new window)

This page is a member of 3 hidden categories:

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox