|
|
#1 |
|
Guest
Posts: n/a
|
Player mouth excluded from rendercolor
Hey,
I'm currently working on a feature for a 3rd person mod where if the camera gets too close to the player the player fades out. This is all working fine except for the players mouth not fading. Or at least I think it's the mouth. A small black box appears inside the players head when the player is neither 100% visible nor 100% invisible. Any ideas what it is and how I can disable it's rendering? Once I have this working perfectly I will be posting all my player fading code onto the VDC so future mods will not have to go through all of this. |
|
|
|
#2 |
![]() Join Date: Jul 2007
Reputation: 84
Posts: 2,170
|
Yes, thats the inside of the mouth. The reason it doesn't fade is that the shader it uses ... doesn't like fading. But you don't really care if it uses a special shader or not, so I just changed the material files to use the same as the rest of the player model. Add these files to your mod:
materials\Models\Humans\Female\fmouth.vmt Code:
"VertexLitGeneric"
//"Teeth"
{
"$basetexture" "models/Humans/Female/fmouth"
// "$model" 1
// "$clientshader" "MouthShader"
"$halflambert" 1
}
Code:
"VertexLitGeneric"
//"Teeth"
{
"$basetexture" "models/Humans/Male/mouth"
// "$model" 1
// "$clientshader" "MouthShader"
"$halflambert" 1
}
|
|
|
|
|
|
#3 |
|
Guest
Posts: n/a
|
|
|
|
|
#4 |
![]() Join Date: Jul 2007
Reputation: 84
Posts: 2,170
|
sweet .
|
|
|
|
![]() |
|
||||||
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Figuring out when a player disconnects. | mflux | Source Coding | 4 | 08-06-2008 04:15 AM |
| [OB SP] Player distance to enemy | kampfhannez | Source Coding | 3 | 07-23-2008 11:07 PM |
| Local player drawing on camera | Winston | Source Coding | 4 | 08-19-2007 11:44 PM |
| Tutorial : How To Install Cs:Source On Linux Debian | servmcs | Half-Life DS (Linux) | 8 | 10-19-2004 07:48 AM |