Lightmap: Difference between revisions
ChosenJuan (talk | contribs) m (spelling) |
m (typo & minor tidy) |
||
Line 1: | Line 1: | ||
A lightmap is all the lighting data of each face. This light data is then applied additively to each face to produce the final lit effect. Especially common in [[BSP]] based engines, it's the method used for most lighting effects within the source engine. | A lightmap is all the lighting data of each face. This light data is then applied additively to each face to produce the final lit effect. Especially common in [[BSP]] based engines, it's the method used for most lighting effects within the source engine. | ||
Determined during the [[vrad]] compile | Determined during the [[vrad]] compile process lightmaps are only applied to brush faces as models are lit differently. The lightmap's scale refers to the number of texture pixels per light pixel (luxel). Smaller values means more luxels, thus a better quality but larger BSP size and compile times. The lightmap resolution can be viewed within [[Hammer]] by altering the viewmode in the top right to lightmap. It can also be viewed and edited from the [[Hammer_Face_Edit_Dialog|Face Edit Dialog]] on any normal face. Faces such as [[displacement]] maps calculate and use their own lightmap scale; different values will often get reset by Hammer to match the displacements' lightmap size. | ||
==Related | == Related [[ConCommand]]s == | ||
*[[Lightmap Commands#mat_filterlightmaps|mat_filterlightmaps]] | *[[Lightmap Commands#mat_filterlightmaps|mat_filterlightmaps]] | ||
*[[Lightmap Commands#mat_showlightmapcomponent|mat_showlightmapcomponent]] | *[[Lightmap Commands#mat_showlightmapcomponent|mat_showlightmapcomponent]] | ||
Line 10: | Line 10: | ||
*[[Lightmap Commands#r_lightmap|r_lightmap]] | *[[Lightmap Commands#r_lightmap|r_lightmap]] | ||
==Examples== | == Examples == | ||
[[image:intlight_lmap4.jpg|thumb|left|A lightmap scale of 4]] | [[image:intlight_lmap4.jpg|thumb|left|A lightmap scale of 4]] | ||
[[image:intlight_lmap16.jpg|thumb|left|A lightmap scale of 16]] | [[image:intlight_lmap16.jpg|thumb|left|A lightmap scale of 16]] | ||
Line 16: | Line 16: | ||
[[Category:Level Design]][[Category:Glossary]] | [[Category:Level Design]] | ||
[[Category:Glossary]] |
Revision as of 08:57, 14 February 2008
A lightmap is all the lighting data of each face. This light data is then applied additively to each face to produce the final lit effect. Especially common in BSP based engines, it's the method used for most lighting effects within the source engine.
Determined during the vrad compile process lightmaps are only applied to brush faces as models are lit differently. The lightmap's scale refers to the number of texture pixels per light pixel (luxel). Smaller values means more luxels, thus a better quality but larger BSP size and compile times. The lightmap resolution can be viewed within Hammer by altering the viewmode in the top right to lightmap. It can also be viewed and edited from the Face Edit Dialog on any normal face. Faces such as displacement maps calculate and use their own lightmap scale; different values will often get reset by Hammer to match the displacements' lightmap size.