Page 1 of 1

Shader and texture not working, despite checks

Posted: Sat Nov 05, 2011 4:35 am
by EmeraldTiger

Code: Select all

textures/snakes/mygreenflag
{
	surfaceparm nonsolid
	surfaceparm trans
	deformVertexes bulge 0.5 0.5 1
	{
		map textures/snakes/greenmap.tga
		tcMod scroll 0.5 0.5
		tcGen environment 
	}
	{
		map textures/snakes/greenflag.tga
		blendfunc blend
	}
}
This is a shader from a file in my scripts folder. Up until this point everything worked fine. I am creating shaders much the same way I always did. The textures mentioned are in the correct folders and so the game should be able to find them, by logic. But this does not happen. The textures do not show up at all. In addition, effects like DeformVertexes don`t function either. Apparently the whole shader doesn't work, even though it seems like I did everything right.

What`s worse, the game doesn't report errors, warnings, or missing texture / shader issues like it usually does. It completely ignores it like it`s just fine. It seems like everything is starting to fly in the face of logic now. I swear I didn't touch anything, I just did things like I always did. All other custom shaders in the same file as this one work as they should.

Did anyone ever have a similar issue? If anyone has a solution, that would be greatly appreciated.

Re: Shader and texture not working, despite checks

Posted: Sat Nov 05, 2011 6:04 am
by dONKEY
I assume you have added the shader name to the shaderlist.txt
My importantly the texture name that script calls is different to the two texture stage names. You need an editor image line in the first section of the script.
Im guessing you have simply applied the green flag texture, not the shader which explains why u have no errors.

Re: Shader and texture not working, despite checks

Posted: Sat Nov 05, 2011 6:26 am
by EmeraldTiger
Hmm... I added the editorimage and it shows up correctly in the editor. The texture applied is also "textures/snakes/mygreenflag" so it is the shader. Very strange...

Re: Shader and texture not working, despite checks

Posted: Sat Nov 05, 2011 5:05 pm
by deqer
Please post your shaderlist.txt, and is this a regular map or a custom mod map?

Re: Shader and texture not working, despite checks

Posted: Sat Nov 05, 2011 6:12 pm
by EmeraldTiger
It`s a regular map. Also checked my shaderlist.txt, "snakes" is mentioned.

Re: Shader and texture not working, despite checks

Posted: Sat Nov 05, 2011 9:26 pm
by EmeraldTiger
Nevermind, got it fixed. Found out an old .pk3 was doing it.