Shader not working -1 reply

  • 1
  • 2

Please wait...

kidoncrack

Bean pot pie

50 XP

25th March 2008

0 Uploads

181 Posts

0 Threads

#1 8 years ago

So, I made a shader, but it won't work for some reason.

textures/viper/uvw_pic24 { q3map_material SolidMetal { map $lightmap } { map textures/viper/uvw_pic24 blendFunc GL_DST_COLOR GL_ZERO } }

textures/viper/grate { qer_editorimage textures/viper/fgrate cull twosided { map textures/viper/grate alphaFunc GE128 blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA depthWrite rgbGen identity } { map $lightmap alphaFunc GE128 blendFunc GL_DST_COLOR GL_SRC_COLOR } }

I don't get any errors, but it shows as a lightgrid. Any idea why?




NAB622

EAT ME!

50 XP

8th October 2005

0 Uploads

6,921 Posts

0 Threads

#2 8 years ago

Check the in-game console, it usually tells you what's wrong.

Although, I have a hunch that using an AlphaFunc on a lightmap might be your problem.




jk3editor

Retard Hungarian Modder

50 XP

21st August 2008

0 Uploads

1,520 Posts

0 Threads

#3 8 years ago

[COLOR="Navy"]Don't you get error in ShaderED?[/COLOR]




kidoncrack

Bean pot pie

50 XP

25th March 2008

0 Uploads

181 Posts

0 Threads

#4 8 years ago

NAB622;5242013Check the in-game console, it usually tells you what's wrong.

Although, I have a hunch that using an AlphaFunc on a lightmap might be your problem.

I don't get any errors, and I don't use ShaderED. I don't know why the alphaFunc wouldn't work, it is just a copied grate shader, but I'll try that.




Xycaleth

Resident programmer guy

50 XP

3rd May 2016

1 Uploads

86 Posts

0 Threads

#5 8 years ago

Do you test your shader with sv_pure set to 0? Files outside pk3 files aren't used unless your server is unpure (i.e. sv_pure 1). You might want to try that to see if that fixes the problem.




=Someone=

MovieBattles II Modeler

50 XP

15th January 2008

0 Uploads

160 Posts

0 Threads

#6 8 years ago

Do you switch between textures in the second shader on purpose (note the qer_editorimage textures/viper/[COLOR="Red"]f[/COLOR]grate), or could that be a typo?




The One and Only

I R Scary Eyeball

50 XP

29th January 2004

0 Uploads

4,091 Posts

0 Threads

#7 8 years ago

That wouldn't make any difference ingame though, even if that is an error.




kidoncrack

Bean pot pie

50 XP

25th March 2008

0 Uploads

181 Posts

0 Threads

#8 8 years ago
=Someone=;5242268Do you switch between textures in the second shader on purpose (note the qer_editorimage textures/viper/[COLOR="Red"]f[/COLOR]grate), or could that be a typo?[/QUOTE] That was intentional. [QUOTE=Xycaleth;5242204]Do you test your shader with sv_pure set to 0? Files outside pk3 files aren't used unless your server is unpure (i.e. sv_pure 1). You might want to try that to see if that fixes the problem.

YES, this has fixed the first shader. Thank you. However, the second shader is no longer a lightgrid, but doesn't have the holes in the grate, how do I fix this?

textures/viper/grate { qer_editorimage textures/viper/fgrate cull twosided { map textures/viper/grate alphaFunc GE128 blendFunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA depthWrite rgbGen identity } { map $lightmap alphaFunc GE128 blendFunc GL_DST_COLOR GL_SRC_COLOR } }




The One and Only

I R Scary Eyeball

50 XP

29th January 2004

0 Uploads

4,091 Posts

0 Threads

#9 8 years ago

All I can think of is that the textures have invalid dimensions.




AshuraDX

WTF ?! BOOOOOOOM !

50 XP

10th May 2009

0 Uploads

1,462 Posts

0 Threads

#10 8 years ago

^ if that was the case he should be able to see an error in his console




  • 1
  • 2