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
1
Re: Compiling Model with Normal Maps
Posted by Captain P on Tue Dec 12th at 11:56am 2006

Captain P
member
1370 posts
247 snarkmarks
Registered: Nov 6th 2003
Location: Netherlands
Occupation: Game-programmer
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?
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?
Captain P
member
1370 posts
247 snarkmarks
Registered: Nov 6th 2003
Location: Netherlands

Occupation: Game-programmer
1
© Snarkpit.net 2001 - 2023, about us, donate, contact
Snarkpit v6.1.0 created this page in 0.0147 seconds.

Snarkpit v6.1.0 created this page in 0.0147 seconds.

