Page 1 of 1

Going insane over specularmaps!

PostPosted: Sun Mar 06, 2011 11:56 am
by piderman
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? :?

Re: Going insane over specularmaps!

PostPosted: Sun Mar 06, 2011 1:38 pm
by Kosire
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"
}

Re: Going insane over specularmaps!

PostPosted: Sun Mar 06, 2011 1:54 pm
by piderman
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?

Re: Going insane over specularmaps!

PostPosted: Sun Mar 06, 2011 2:00 pm
by piderman
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 :(