Compiling Model with Normal Maps

Compiling Model with Normal Maps

Re: Compiling Model with Normal Maps Posted by kyaranger on Tue Dec 12th 2006 at 10:16am
kyaranger
4 posts
Posted 2006-12-12 10:16am
4 posts 0 snarkmarks Registered: Oct 3rd 2006
<span style="color: darkgreen;">Hello, I created a model in 3ds max 8 and the textures for this model consists of 3 tga files, it's normal texture, the Specular map and the Normal map. Anyway, I exported the model as .smd format. I then compiled the model into an .mdl file. I then took my tga's and converted them into vtf files, I then created a vmt file</span> "
"LightmappedGeneric"
{
"$basetexture" "mynormaltexture"
"$surfaceprop" "metal"
"$bumpmap" "mynormaltexture_normal"
}
I load the model in the hl2 model viewer, and the model appears black.

If I change the lightmappedgeneric to something else, like VertexlitGeneric, the model loads just fine but theres no visible bumpmap.

My questions are, how do i properly get bumpmap/normals to work in hl2 and, how do I get Specular map to work?

I hope this made sense :/

Thank you<br style="color: yellow;">
Re: Compiling Model with Normal Maps Posted by Captain P on Tue Dec 12th 2006 at 11:56am
Captain P
1370 posts
Posted 2006-12-12 11:56am
1370 posts 1995 snarkmarks Registered: Nov 6th 2003 Occupation: Game-programmer Location: Netherlands
Model textures need to be VertexlitGeneric, LightmappedGeneric is reserved for level geometry (since these get lightmaps added on top of them).

I'm not sure what causes your bumpmap not to show up, but perhaps it's a problem with the model viewer. How does it look in-game?
Create-ivity - a game development blog