Page 1 of 1
question: light map
Posted: Fri Mar 25, 2016 1:05 am
by CLOUDspawn
what is a light map? or a light image?
do i make it in photoshop? is it like an alpha channel?
I googled it a couple times and came up with nothing.
anybody know?
Re: question: light map
Posted: Fri Mar 25, 2016 4:35 am
by obsidian
https://en.wikipedia.org/wiki/Lightmap
In regards to Q3, they are automatically generated by the compiler Q3Map2, stored in the BSP file, and are subtractively filtered over the base texture.
Re: question: light map
Posted: Sat Mar 26, 2016 1:14 pm
by sst13
Texture only "fullbright" (r_fullbright 1; vid_restart)
[lvlshot]http://sst13.net/pics/13yard-fullbright2.jpg[/lvlshot]
+
Lightmap only (r_lightmap 1)
[lvlshot]http://sst13.net/pics/13yard-lightmap2.jpg[/lvlshot]
=
Textures & Lightmap combined
[lvlshot]http://sst13.net/pics/13yard-texture2.jpg[/lvlshot]
A Lightimage (shader related) is a simple texture. It's average color is used to generate the color of the light emitted by the shader surface.
Re: question: light map
Posted: Sat Mar 26, 2016 1:32 pm
by AEon
Awesome demo shots to explain the effect of a lightmap... neat.
Re: question: light map
Posted: Sat Mar 26, 2016 2:29 pm
by sst13
It's also possible to view vertex-light only with: "r_vertexlight 1; r_fullbright 1; vid_restart"