Ads keep us online. Without them, we wouldn't exist. We don't have
paywalls or sell mods - we never will. But every month we have large bills
and running ads is our only way to cover them. Please consider unblocking us. Thank you from GameBanana <3
How to use Lightmaps
- A Tutorial for Counter-Strike: Source.
Welcome to another one of my mapping tutorials, this tutorial will teach you about how to use Lightmaps.
First of all, what are Lightmaps?
A Lightmap is the light data which is stored on each face of a brush. Lightmaps are used to add some nice shadow effects into the game.
The Lightmap scales are measured by numbers (4,16,64 etc). The lower the number, the better quality, but the bigger the BSP is in the end. The Higher the number, the lower the quality and the smaller the BSP. Lightmap scales also affect Vrad time. The smaller the scale, the longer compiling takes. This is a reason why sometimes adjusting lightmaps help optimize your map.
How to use them
Using Lightmaps is pretty simple, so lets get started.
Open up your map or quickly create a new one.
Now, open up the Texture Application Tool and select the face where you want to change the lightmap scale.
Look in the texture application box and you should see in the top right corner, a small box Labeled Lightmap Scale.
That is what we are going to edit. You can mess around with the scale now but you won't notice a difference.
In order for you to see a difference, you will need to change a setting in the Camera view of Hammer. Right Click where it says "Camera" on the to left corner and from the drop down list Select 3D Lightmap Grid.
Once you've selected 3D Lightmap Grid you should see that your whole map has changed into something like this:
Now, open up the Texture Application Tool and once again select the face which you want to change.
You can now mess around with the Lightmap scale. You'll notice that as you change the scale, the look of it changes as well. The Higher the scale is the bigger the grid is. The smaller the scale, the smaller the grid.
Here are some examples of the differences in the Scales:
You should notice that Scale 4 looks the best and Scale 64 looks the worst, it's almost like there is no shadow.
That is it! You can now mess around with it to your liking. Just remember that the lower the scale, the longer it takes for Vrad to compile.If you have any questions please do not hesitate to ask me! You can post here or PM me for any questions.
Pros: Very well explained, everything taken into consideration
Cons: This is a useful function, but I think It would be easier to jsut say "Select lighmap, change size" instead of having that many side notes.
Notes: I am in love with lightmaps and I really like your tut, don't get me wrong
Pros: Your tutorials are always well put-together and informative, to say the least. Good job on this one in particular, since it was just what I needed to read.
Cons: Of course this topic specifically isn't that useful. If anyone else had written it and left out the parts about what lightmaps do, I would have graded it even lower. Since you included the hows and whys, though, I marked you rather high.
Improvements: None. You perfected this tutorial.
Notes: Regardless of my 9 on the usefulness scale, the tutorial was great.
Notes: This is a well written and very usefull tutorial because now I am becoming more advanced in mapping I need to know alot more about lighting and shadowing then just placing lights with light spots and light sources.