Hosting and domain costs until October 2024 have been generously sponsored by dumptruck_ds. Thank you!

Difference between revisions of "Light (map compiling)"

From Quake Wiki

(What Light Does)
Line 3: Line 3:
 
==What Light Does==   
 
==What Light Does==   
 
Using the [[light (entity)|light entities]] from the [[entity lump]] of the bsp file, it precalculates the lighting on each [[surface]] in the level, and saves that data as [[lightmap|lightmaps]] in the bsp file.
 
Using the [[light (entity)|light entities]] from the [[entity lump]] of the bsp file, it precalculates the lighting on each [[surface]] in the level, and saves that data as [[lightmap|lightmaps]] in the bsp file.
 +
 +
Some modified Light tools can also calculate [[colored lighting]] for the level and save it seperately in a [[lit file]].
  
 
==Using Light==
 
==Using Light==

Revision as of 09:35, 11 January 2010

Light is one of the stages of map compiling. It calculates lighting and shadows for a bsp file previously generated by QBSP.

What Light Does

Using the light entities from the entity lump of the bsp file, it precalculates the lighting on each surface in the level, and saves that data as lightmaps in the bsp file.

Some modified Light tools can also calculate colored lighting for the level and save it seperately in a lit file.

Using Light

Light is a command-line tool, generally named light.exe. You can invoke it from a command prompt, via a shortcut or batch file, or from the "compile" or "build" menus of some level editors.

Command-line options

TODO

Error Messages and Warnings

TODO

Updated Versions

In addition to id Software's official Light, there have been various unofficial versions that improve on the original or add additional features. For a list of Light variants, see mapping tools.