Search
Username:
Password:
Register or Reset Password
Remove the ads!
  
Texture Creation 102 - Normal and Specular Map's
Difficulty: Beginner
Category: CS:S > MappingAuthor(s): Rokusho39

Introduction

Now that the base texture (otherwise known as the colour map) has been completed. The next stage is to create the normal and specular map for it. The normal and specular map's handle reflection's and shading effects. What you may have noticed is that if you use your texture in it's current state, it will look very unrealistically flat. This tutorial aim's to teach you how to create the normal and specular map's as well as editing the VMF file.



Before we start, you will need to download the nVidia Normal Map Filter if using photoshop, or CrazyBump if you don't have photoshop, or want another option.



This is my texture I will be using to create the normal and speuclar map. I assume you have already read my previous tutorial, Texture Creation 101

Creating The Normal Map

Using the nVidia Photoshop Plug-in

To use the nVidia plug-in, simply open you're texture in photoshop and then save it under a different filename, I normally save it with a _normal suffix, to remind me what it is and for easy organisation. The first step is to do a slight edit to the texture. By using different shades of grey, you can determine how 'bumpy' the surface will be. In my example, I'll be using a mid grey for the main wall, and lighter colours for the paint. Do this on a new layer. (Remember to flatten the image first)



Now, change the opacity of this layer to 70%-75%, to allow a little detail to come through. Flatten the image.



Next click on Filter -> nVidia Tools -> NormalMapFIlter... Then simply change the settings to get what you want, there is also a preview button as well. The scale should be the only thing you need to edit for now, I'll be using a scale of 4.



Save this image as a DXT1 file in the same folder as your colour map.

Something you skinners may have noticed is that there is no alpha layer here. There is no need for one, as an alpha layer in the Normal map act's as the specular map, which will be an independant file in this tutorial.

Using CrazyBump

After installing the program, open it, open your colourmap.



It will generate the normal automatically, save it as a JPEG or PSD, then use Photoshop or VTFEdit to convert this image to a VTF. Save it as a DXT1 file.

Creating The Specular Map

Open the colourmap in Photoshop, or your prefered image editor and save it with a _spec suffix, again useful for organisation. Flatten the image. Then go to image -> adjustments -> desaturate.



Add a new layer and make fill it with black. Turn the opacity down to 60%. The source engine needs good definition of contrast, as opposed to other engine like Unreal3, which needs a very subtle specular map. You may want to play about with the brightness and contrast setting's as well.



Save it as a DXT1, or as a I8 format in the same location as your colour map. I still havn't experimented with this format yet, but it should give a smaller file size.

Editing the VMT

Now that you have your Specular and Normal map, the VMF needs to be edited to tell the engine to use them. Open the VMT in VTFEdit or notepad. Then add the following lines to the already existing ones:


"$envmapmask" "Name of your specular map texture"
"$bumpmap" "Name of your normal map texture"
"$envmap" "env_cubemap"
"$envmaptint" "[ .3 .3 .45 ]"


The envmaptint numbers can be varied, but I am still unsure what exactly they do, most changes to the actual visual rendering of the image will come from changing the normal, specular and colour maps.

Once everything is done and finshed, you must recompile your map. So if you used the colour map only to use in your map then just added the spec and normal maps without recompiling your map, it will not work correctly.

Conclusions

Well, that's it, use the texture in a map, compile it and see what the result is ingame. make sure to include cubemap's and compile them in the game engine to see it correctly. Note how the wall reflects the light and the wall actually looks like there are chips and knocks in it.



Hopefully, these past two tutorials should show you how to make the majority of textures you will need for a custom map. Enjoy.
Added: 1 year agoTags: normal, spec, specular, texture, custom, content
Feedback (29)
Page of 3   1 2 3 Next Page
Ratchet66 .
@#*&%!?Y2M
Posted 2 months ago
Very good tutorial.It helped me create my first skin.
Ruff .
Chemical Generation.Y2M
Posted 3 months ago
Both Tuts are great and I am using them to help create textures for my new GG map.
- Chemical Generation.
DAVE42 .
BananiteY2M
Posted 4 months ago
Thank you but now i need to know if this is only for Photoshop or can you get the DXT1 format in gimp?
- Bananite
.
Will map for food.Y2M
Posted 4 months ago
Posted by DAVE42

WHAT IS THIS "DXT1 format" can anyone save me!!!

DXT1 format is a type of texture format. There are many different texture formats and DXT1 is just one of them. Usually it is selected by default when you save a texture file.
DAVE42 .
BananiteY2M
Posted 4 months ago
WHAT IS THIS "DXT1 format" can anyone save me!!!
- Bananite
TunaSammich .
The Artist Formerly Known as BananiteY2M
Posted 4 months ago
Posted by Rokusho

Posted by TunaSammich

What is re-compiling?


Same as compiling, the context in which I used the word was meaning that you compile the map again.


Ehm... what is compiling? Sorry...
- The Artist Formerly Known as Bananite
.
Will map for food.Y2M
Posted 4 months ago
Posted by TunaSammich

What is re-compiling?


Same as compiling, the context in which I used the word was meaning that you compile the map again.
TunaSammich .
The Artist Formerly Known as BananiteY2M
Posted 4 months ago
What is re-compiling?
- The Artist Formerly Known as Bananite
Spockums .
Y2M
Posted 6 months ago
Hmm, when I try to save the image, I can't find the DXT1 format. How can I fix this?
CuBixxx .
BananiteY2M
Posted 8 months ago
Hey, i followed this tutorial but i have a problem, my specular map seems to not work, my texture just reflects the env_cubemap and adding or removing the specular map vmt code makes no difference to the in game effect. Any advice? want to get this working as its for a final year uni project, thanks!
- Bananite
Page of 3   1 2 3 Next Page
Add Feedback
Provide constructive feedback. What is "constructive"?
You cannot post yet!
Get involved on FPSB by posting your thoughts. Give authors your feedback to help them develop.

To post in this submission register or login.
Assessment
The community's verdict.
User Rating [+]
9.9/10
bScore
9.9/10
You cannot assess yet!
Moderating FPSB is in your hands - when you assess a submission your vote determines its success or failure.

To vote on this submission register or login.
Stamps
This Tutorial in a nutshell...
Well Written & Comprehensive
You cannot stamp yet!
Stamps let you apply characteristics to submissions to help others understand them.

To stamp this submission register or login.

Brought to you by...
Half Life Storm
The Mappers Corner!
Membership: On Request
Primary Skills: Compiling, Mapping, Modelling, Motion Graphics, Texturing, UV Mapping
Inception: 3 years ago
Vote for Studio
Like this tut? Vote Half Life Storm for one or more monthly awards.
You must login or register to access this!
Related Tutorials
Want more? Find related tuts.