Go Back   Steam Users' Forums > Steam Tool Discussions > Source Coding

Reply
 
Thread Tools Display Modes
Old 12-14-2008, 05:30 AM   #1
FoXoF
 
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.
 
Reply With Quote
Old 12-14-2008, 06:16 AM   #2
Winston
 
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
}
and materials\Models\Humans\Male\mouth.vmt
Code:
"VertexLitGeneric"
//"Teeth"
{
	"$basetexture" "models/Humans/Male/mouth"
//	"$model" 1
//	"$clientshader" "MouthShader"
	"$halflambert" 1
}
Winston is offline   Reply With Quote
Old 12-14-2008, 08:59 AM   #3
FoXoF
 
Guest
Posts: n/a
Cheers, working perfectly now.

As promised: http://developer.valvesoftware.com/w...In_Thirdperson
  Reply With Quote
Old 12-14-2008, 10:28 AM   #4
Winston
 
Join Date: Jul 2007
Reputation: 84
Posts: 2,170
sweet .
Winston is offline   Reply With Quote
Reply

Go Back   Steam Users' Forums > Steam Tool Discussions > Source Coding


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


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


All times are GMT -7. The time now is 09:25 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site Content Copyright Valve Corporation 1998-2014, All Rights Reserved.