[hlcoders] ForcedMaterialOverride in BaseEntity

2009-12-25 Thread Christian
Hello, I want to create a overlay-effect with the ForcedMaterialOverride function for a specific entity. The entity is derived from CBaseEntity and mapped over network. The client class is very simple (network variable is stripped out): class C_TestEntity : public C_BaseEntity { public:

Re: [hlcoders] ForcedMaterialOverride

2009-04-11 Thread Tony Sergi
-Life Programming Subject: Re: [hlcoders] ForcedMaterialOverride 2 more questions: first: where is the catalyst control center? second: this looks like a fix to my computer. So there shouldn't be any problems with other computers? If there should, is there another way to override the textures without

Re: [hlcoders] ForcedMaterialOverride

2009-04-10 Thread Jean Marcel Knapp dos Santos
2 more questions: first: where is the catalyst control center? second: this looks like a fix to my computer. So there shouldn't be any problems with other computers? If there should, is there another way to override the textures without needing these fixes? 2009/4/9 botman

[hlcoders] ForcedMaterialOverride

2009-04-09 Thread Jean Marcel Knapp dos Santos
Hi, I'm Xblah, coder-lead of Offline: Source. I'm trying to build a thermal vision, and one step is overriding the materials of the combat characters: int C_BaseCombatCharacter::DrawModel(int flags) { int retVal = BaseClass::DrawModel(flags); if ( m_bThermal ) {

Re: [hlcoders] ForcedMaterialOverride

2009-04-09 Thread Jonas 'Sortie' Termansen
Shouldn't you use VertexLitGeneric as the shader for the .vmt? - Original Message - From: Jean Marcel Knapp dos Santos changremi...@gmail.com To: hlcoders@list.valvesoftware.com Sent: Friday, April 10, 2009 12:45 AM Subject: [hlcoders] ForcedMaterialOverride Hi, I'm Xblah, coder-lead

Re: [hlcoders] ForcedMaterialOverride

2009-04-09 Thread Jean Marcel Knapp dos Santos
? - Original Message - From: Jean Marcel Knapp dos Santos changremi...@gmail.com To: hlcoders@list.valvesoftware.com Sent: Friday, April 10, 2009 12:45 AM Subject: [hlcoders] ForcedMaterialOverride Hi, I'm Xblah, coder-lead of Offline: Source. I'm trying to build a thermal vision

Re: [hlcoders] ForcedMaterialOverride

2009-04-09 Thread Jonas 'Sortie' Termansen
Knapp dos Santos changremi...@gmail.com To: Discussion of Half-Life Programming hlcoders@list.valvesoftware.com Sent: Friday, April 10, 2009 1:19 AM Subject: Re: [hlcoders] ForcedMaterialOverride Thanks, it worked, but now there is another error: ShaderAPIDX8::CreateD3DTexture: Invalid color

Re: [hlcoders] ForcedMaterialOverride

2009-04-09 Thread botman
On 4/9/2009 6:19 PM, Jean Marcel Knapp dos Santos wrote: Thanks, it worked, but now there is another error: ShaderAPIDX8::CreateD3DTexture: Invalid color format! The combat characters are now black... They supposed to be yellow/red. If you google ShaderAPIDX8::CreateD3DTexture: Invalid color