Compiling Model with Normal Maps
Post Reply
Quote
Re: Compiling Model with Normal Maps
Posted by kyaranger on Tue Dec 12th at 10:16am 2006


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 "
"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





Quote
Re: Compiling Model with Normal Maps
Posted by Captain P on Tue Dec 12th at 11:56am 2006


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?







Post Reply