Hello, I am having trouble getting the material proxy "PlayerHealth" working on a post-process shader. Here is what I know so far:
1) The SDK Wiki says the name of the proxy is "PlayerHealth" when it is in fact, just "Health". So I got an error saying proxy "PlayerHealth" doesn't exist. (I will fix this myself on the Wiki later, and add notes about #2 after further testing) 2) I tried using "Health" but it also said it didn't exist. I'm guessing because I had a shader constant also called "Health" and that screwed it up, because see #3 3) I changed the name of the proxy to "PlayerHealth" and now it will properly run Init() on the CProxyHealth class, and CResultProxy returns true on pMaterial->FindVar for the "resultVar" mapping of the PlayerHealth proxy. So I know the proxy is loaded, and set to be used. 4) The value is still not getting into the shader constant. I realized Bind() was not getting called, so I added materials->bind( pMaterial ) where pMaterial is my post-process shader. However, still doesn't work. 5) I set a breakpoint in CProxyHealth::OnBind and it never breaks, so I know for sure the shader constant is not getting set. Any ideas?? Thanks! - Chris _______________________________________________ To unsubscribe, edit your list preferences, or view the list archives, please visit: http://list.valvesoftware.com/mailman/listinfo/hlcoders

