I am currently working on a CP skin, and I've seen it before, but how would i make the eyes of the Metrocop Glow when in dark area's?
[img]http://3.filepak.com/9_gm_construct0006.jpg[/img]
vmt
[code]
"VertexLitGeneric"
{
"$basetexture" "Models/Taux/metrocop_sheet"
"$bumpmap" "Models/Taux/metrocop_sheet_normal"
"$model" 1
"$phong" "1"
"$phongexponent" "30"
"$phongboost" "1"
"$phongexponenttexture" "Models/Taux/metrocop_sheet_EXP"
"$phongfresnelranges" "[0.1 2.1 5.1]"
"$phongalbedotint" "1"
}
[/code]
you need to use selfillum
When i try that, the whole body illuminates.
I have a sheet with only specific parts of it white, not to sure how to link it up though.
Are you using Photoshop or Gimp? I can post a quick tutorial on what do to with Gimp, but if it's Photoshop I can't really help you.
[editline]28th April 2011[/editline]
I assume it's a problem with how you're making the texture because selfillum [i]should[/i] work if the vtf is correct.
First define self illumination with:
$selfillum 1
Then, use:
$selfillumtexture <path to texture>
That should do it.
If you're ever unsure about something, check the [url=http://developer.valvesoftware.com/wiki/Main_Page]Valve Developer Community Wiki[/url]. It's been really helpful to me in the past, and continues to do so.
Tried what you said Squiddy,
now he appears to be very shiny...
[img]http://7.filepak.com/1_gm_construct0006.jpg[/img]
This is the sheet I'm using:
[img]http://6.filepak.com/3_metrocop_sheet_spec.jpg[/img]
[code]
"VertexLitGeneric"
{
"$basetexture" "Models/Taux/metrocop_sheet"
"$bumpmap" "Models/Taux/metrocop_sheet_normal"
"$model" 1
"$phong" "1"
"$envmap" "env_cubemap"
"$envmapcontrast" 1
"$phongexponent" "30"
"$phongboost" "1"
"$selfillum" 1
"$selfillumtexture" "Models/Taux/metrocop_sheet_spec"
"$phongfresnelranges" "[0.1 2.1 5.1]"
"$phongexponenttexture" "Models/Taux/metrocop_sheet_EXP"
"$phongalbedotint" "1"
}
[/code]
I think you need to only keep the part in white you want, scrap the other stuff. Like remove all but keep the eyes white.
I dont think that has much to do with it.
Can you post the base texture (the "metrocop_sheet" file)? If you add a mask to the texture itself, you won't even need to use a separate vtf for the selfillum, it will work based off of the base texture.
$selfillummask doesn't work with $bumpmap and you'll need to remove all the grey areas unless if you want those to glow as well
[QUOTE=Game Zombie;29499330]$selfillummask doesn't work with $bumpmap[/QUOTE]
It says that, but I've done it on multiple models already with a dedicated illumination mask.
Also, sorry tau, I meant $selfillummask, texture doesn't work with the new engine.
However, like Game Zombie said, you are going to need to get rid of the grey areas and only leave the eyes white for what you're after.
[QUOTE=Squiddy;29499545]It says that, but I've done it on multiple models already with a dedicated illumination mask.[/QUOTE]
Ok then. Shouldn't he actually use $selillummask then instead of $selfillumtexture
[QUOTE=Game Zombie;29499612]Ok then. Shouldn't he actually use $selillummask then instead of $selfillumtexture[/QUOTE]
Yeah xD I realized that mistake just after I posted and edited it in.
[url]http://2.filepak.com/9_metrocop_sheet_red.png[/url]
I tried changing it to $selfillummask, removed the $bumpmap and changed the sheet so it had no grey areas, now its gone back to the original problem of making the whole body glow.
[code]
"VertexLitGeneric"
{
"$basetexture" "Models/Chimpvanzee/metrocop_sheet"
"$model" 1
"$envmapcontrast" 1
"$selfillum" 1
"$selillummask" "Models/Chimpvanzee/metrocop_sheet_spec"
}
[/code]
Try [url=http://www.mediafire.com/?mv75qzb93aox0ce]this[/url] vtf. Add $selfillum to your vmt but don't put $selfillummask or $selfillumtexture.
I obviously can't test it without the model but I used the exact same method that I have used on various skins I've made in the past.
Wooh, thanks Shrapnel.
That worked for me!
[QUOTE=tau X;29500640]Wooh, thanks Shrapnel.
That worked for me![/QUOTE]
No problem. For future reference, here's what I did (in Gimp, Photoshop is probably similar):
1. Open file
2. Select sections you want to glow
3. Under Layer>Mask click on 'Add Layer Mask'
4. Set it so that it's based on your selection
5. Export as vtf and viola, there you go
Sorry, you need to Log In to post a reply to this thread.