Going insane over specularmaps!

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

Going insane over specularmaps!

Postby piderman on Sun Mar 06, 2011 11:56 am

I'm trying to create some custom materials for myself in CSS using Crazybump and VTFedit. I'm trying to fit a bumpmap and a specularmap in the same material so I understand you have to take the alternative path.

I'm trying to get a shiny quality to the texture so any way to achieve this is welcome.

First of all I tried to place the specmap in the alpha channel of the bumpmap. IT DOESN'T WORK!
Code: Select all
"LightmappedGeneric"
{
   "$basetexture" "Custom/stonefloor2"
   "$surfaceprop" "Rock"
   "$normalmapalphaenvmapmask" 1
       "$envmaptint" "[ .3 .3 .3 ]"
       "$envmap" "env_cubemap"
   "$envmapmask" "Custom/stonefloor2SPEC"
}


Second I tried placing it in the basetexture INVERTED as I understand it should be. DOESN'T WORK EITHER.
Code: Select all
"LightmappedGeneric"
{
   "$basetexture" "Custom/stonefloor2"
   "$surfaceprop" "Rock"
   "$basealphaenvmapmask" 1
   "$bumpmap" "Custom/stonefloor1NRM"
   "$envmap" "env_cubemap"
}



This the result of BOTH:

Image

Can you help me out? :?
piderman
Dumpling
Dumpling
 
Joined: Sun Mar 06, 2011 10:46 am

Re: Going insane over specularmaps!

Postby Kosire on Sun Mar 06, 2011 1:38 pm

You need to put the specular map into the bump map's alpha channel and make a vmt like this

Code: Select all
"LightmappedGeneric"
{
   "$basetexture" "Custom/stonefloor2"
   "$bumpmap" "Custom/stonefloor2_bump"
   "$surfaceprop" "Rock"
   "$normalmapalphaenvmapmask" 1
   "$envmaptint" "[ .3 .3 .3 ]"
   "$envmap" "env_cubemap"
}
User avatar
Kosire
1337 p0st3r
1337 p0st3r
 
Joined: Sat Mar 07, 2009 7:25 pm
Location: Denmark

Re: Going insane over specularmaps!

Postby piderman on Sun Mar 06, 2011 1:54 pm

Kosire wrote:You need to put the specular map into the bump map's alpha channel and make a vmt like this

Code: Select all
"LightmappedGeneric"
{
   "$basetexture" "Custom/stonefloor2"
   "$bumpmap" "Custom/stonefloor2_bump"
   "$surfaceprop" "Rock"
   "$normalmapalphaenvmapmask" 1
   "$envmaptint" "[ .3 .3 .3 ]"
   "$envmap" "env_cubemap"
}


Should it be inverted however?
piderman
Dumpling
Dumpling
 
Joined: Sun Mar 06, 2011 10:46 am

Re: Going insane over specularmaps!

Postby piderman on Sun Mar 06, 2011 2:00 pm

This is what I did
Code: Select all
"LightmappedGeneric"
{
   "$basetexture" "Custom/stonefloor2"
   "$bumpmap" "Custom/stonefloor2NRM"
   "$surfaceprop" "Rock"
   "$normalmapalphaenvmapmask" 1
       "$envmaptint" "[ .3 .3 .3 ]"
       "$envmap" "env_cubemap"
}


Didn't work :(
piderman
Dumpling
Dumpling
 
Joined: Sun Mar 06, 2011 10:46 am

Return to Custom Asset Help

Who is online

Users browsing this forum: No registered users

cron