Shader and texture not working, despite checks

Discussion for Level editing, modeling, programming, or any of the other technical aspects of Quake
Post Reply
EmeraldTiger
Posts: 392
Joined: Fri Sep 17, 2010 1:53 am

Shader and texture not working, despite checks

Post 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.
[color=#00FF00][b]EmeraldProductions[/b][/color]
http://emeraldproductions.weebly.com/index.html
dONKEY
Posts: 566
Joined: Mon Oct 15, 2001 7:00 am

Re: Shader and texture not working, despite checks

Post 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.
EmeraldTiger
Posts: 392
Joined: Fri Sep 17, 2010 1:53 am

Re: Shader and texture not working, despite checks

Post 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...
[color=#00FF00][b]EmeraldProductions[/b][/color]
http://emeraldproductions.weebly.com/index.html
deqer
Posts: 298
Joined: Mon Dec 28, 2009 6:30 pm

Re: Shader and texture not working, despite checks

Post by deqer »

Please post your shaderlist.txt, and is this a regular map or a custom mod map?
EmeraldTiger
Posts: 392
Joined: Fri Sep 17, 2010 1:53 am

Re: Shader and texture not working, despite checks

Post by EmeraldTiger »

It`s a regular map. Also checked my shaderlist.txt, "snakes" is mentioned.
[color=#00FF00][b]EmeraldProductions[/b][/color]
http://emeraldproductions.weebly.com/index.html
EmeraldTiger
Posts: 392
Joined: Fri Sep 17, 2010 1:53 am

Re: Shader and texture not working, despite checks

Post by EmeraldTiger »

Nevermind, got it fixed. Found out an old .pk3 was doing it.
[color=#00FF00][b]EmeraldProductions[/b][/color]
http://emeraldproductions.weebly.com/index.html
Post Reply