Lightmap: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (consolidated)
m (added images)
Line 10: Line 10:
*[[Lightmap Commands#r_lightmap|r_lightmap]]
*[[Lightmap Commands#r_lightmap|r_lightmap]]


{{todo|create and add images of different lightmap resoultions}}
==Examples==
[[image:intlight_lmap4.jpg|thumb|left|A lightmap value of 4]]
[[image:intlight_lmap16.jpg|thumb|left|A lightmap value of 16]]
[[image:intlight_lmap64.jpg|thumb|left|A lightmap value of 64]]

Revision as of 12:00, 11 June 2006

A lightmap is the surface on top of each face that stores all the lighting information of a face. Especially common in BSP based engines it is addativley applied to each face to produce the final lit effect.


Determined during the vrad compile proccess lightmaps are only applied to brush faces as models are lit differently. The lightmap's value is the size of each pixel of light (luxel) that the lightmap stores. Smaller values means smaller luxels, thus a better resoultion and quality but higher files size and compile times. The lightmap resolution can be viewed within Hammer by altering the viewmode in the top right to lightmap.

Related ConCommands

Examples

A lightmap value of 4
A lightmap value of 16
A lightmap value of 64