model lighting problem

Got problems with your models? Struggling with textures? Get help with your custom assets.

model lighting problem

Postby jimonions on Fri Feb 18, 2011 4:39 pm

I banged up a coupe fence models and a concrete box (bc2 referance)
I made a quick map to try them out and the fences worked out ok but the box seems to have lighting problems.
Image

here is the texture and material file
Image
Code: Select all
"VertexLitGeneric"
{
   "$basetexture" "models/jimonions/barrier"
   "$bumpmap" "models/jimonions/barrier_normal"
   
   "$envmaptint" "[ 0.2 0.2 0.2 ]"
   "$envmapsaturation" 1
}


If it is required I can also post the wireframe model.

PS. I cant get detail Sprites to work with custom textures, I'm sick of this old source engine hooray for Portal 2.
User avatar
jimonions
Regular
Regular
 
Joined: Tue Feb 01, 2011 10:41 am

Re: model lighting problem

Postby Kosire on Fri Feb 18, 2011 6:52 pm

Does you're bumpmap have a specmap in the alpha channel? If so add
Code: Select all
"$normalmapalphaenvmapmask" 1


Else try removing envmaptint and envmapsaturation and it should fix it..
User avatar
Kosire
1337 p0st3r
1337 p0st3r
 
Joined: Sat Mar 07, 2009 7:25 pm
Location: Denmark

Re: model lighting problem

Postby crazycarl on Sat Feb 19, 2011 12:46 am

You need $envmap "env_cubemap" in your vmt to get proper reflections.
crazycarl
Been Here A While
Been Here A While
 
Joined: Tue Jan 12, 2010 9:12 pm

Re: model lighting problem

Postby jimonions on Sat Feb 19, 2011 1:12 am

added a specular map with the basetexture and added the new syntax but still same results
Code: Select all
"VertexLitGeneric"
{
   "$basetexture" "models/jimonions/barrier"
   "$bumpmap" "models/jimonions/barrier_normal"
      "$envmap" "env_cubemap"
      "$envmaptint" "[ 0.2 0.2 0.2 ]"
      "$normalmapalphaenvmapmask" "1"
}
User avatar
jimonions
Regular
Regular
 
Joined: Tue Feb 01, 2011 10:41 am

Return to Custom Asset Help

Who is online

Users browsing this forum: No registered users