Difference between revisions of "Talk:Material proxies"

From Valve Developer Community
Jump to: navigation, search
Line 10: Line 10:
 
---
 
---
  
I'm doing "resultVar" "$color[0] but it's always returning not found. What am I missing? --[[User:Mflux|Mflux]] 04:00, 12 October 2009 (UTC)
+
I'm doing "resultVar" "$color[0] but it's always returning not found. What am I missing?  
 +
 
 +
My proxy:
 +
"Proxies"
 +
{
 +
"TracerScroll"
 +
{
 +
"textureScrollVarR" "$color[0]"
 +
...
 +
 
 +
Then in code:
 +
char const* nameR = data->GetString( "textureScrollVarR" );
 +
then...
 +
m_pTextureScrollVarR = material->FindVar( nameR, &foundR, false );
 +
 
 +
foundR always returns false.
 +
 
 +
--[[User:Mflux|Mflux]] 04:00, 12 October 2009 (UTC)

Revision as of 04:02, 12 October 2009

Maybe I'm missing something here but how is that the proxies that require an entity talk to it. I want to animate a texture between 3 frames so how is it the entities repsonsibility to tell it to do that and how does it tell it to do that? A couple of working examples wouldn't go amis for this page. --Angry Beaver 16:52, 11 Aug 2006 (PDT)

Where can I find info about these dods parameters and do they work in sourcesdk base? $lightwarptexture $blendmodulatetexture --Bluestrike 10:02, 7 Dec 2006 (PST)

"The following proxies are defined in the client DLL for use in any Source game." Are those ALL the proxies, or is the list incomplete? I've found proxies in the gcf that I don't know if it's in the dll. Apart from those already added, I've also found "DepthWrite" (which is also a shader). --Andreasen 11:23, 28 Jan 2008 (PST)

---

I'm doing "resultVar" "$color[0] but it's always returning not found. What am I missing?

My proxy: "Proxies" { "TracerScroll" { "textureScrollVarR" "$color[0]" ...

Then in code: char const* nameR = data->GetString( "textureScrollVarR" ); then... m_pTextureScrollVarR = material->FindVar( nameR, &foundR, false );

foundR always returns false.

--Mflux 04:00, 12 October 2009 (UTC)