Shader issue -1 reply

Please wait...

Omegasigma

Mapper and concept artist

50 XP

16th March 2006

0 Uploads

1,484 Posts

0 Threads

#1 7 years ago

Well, im having issues with this shader, im trying to make the black on this JPG image transparent, so only the other shows, ive done this successfuly with TGA's but I actually dont know how to make an alpha channel TGA >.>; so using a borrowed shader it used a jpg without issues, im stumped on what im doing wrong,t he only difference with mine, the original jpg for the shader was white with black, mine is using yellow, so im stumped Original: textures/rainbow/arrows { qer_editorimage textures/rainbow/arrows surfaceparm nodamage surfaceparm nodlight surfaceparm nodrop surfaceparm noimpact surfaceparm nomarks surfaceparm nosteps surfaceparm playerclip { map $lightmap } { map textures/rainbow/arrows blendFunc GL_DST_COLOR GL_ZERO } { map textures/rainbow/arrows blendFunc GL_ONE GL_ONE glow rgbGen identity } } Altered: textures/rainbow/star_rail { qer_editorimage textures/rainbow/star_rail surfaceparm nodamage surfaceparm nodlight surfaceparm nodrop surfaceparm noimpact surfaceparm nomarks surfaceparm nosteps { map $lightmap } { map textures/rainbow/star_rail blendFunc GL_DST_COLOR GL_ZERO } { map textures/rainbow/star_rail blendFunc GL_ONE GL_ONE glow rgbGen identity } } Im thinking the glow maybe?




Omegasigma

Mapper and concept artist

50 XP

16th March 2006

0 Uploads

1,484 Posts

0 Threads

#2 6 years ago

ive actually went back to my original TGA type shader, howeve ive forgotten when format/steps the TGA has to be for JA to see it properly and use an alpha channel: textures/rainbow/star_rail { Cull none qer_editorimage textures/rainbow/star_rail.tga { map textures/rainbow/star_rail.tga blendFunc blend alphaFunc GT0 depthWrite rgbGen identity } { map $lightmap rgbGen identity blendFunc GL_DST_COLOR GL_ZERO depthFunc equal } } } Actually problem resolved, it wasnt the shader, no, Photoshop wasnt overriting the older files, so stupid




NAB622

EAT ME!

50 XP

8th October 2005

0 Uploads

6,921 Posts

0 Threads

#3 6 years ago

Just for future reference, JPG's can't do alpha blending. The best you can do is a blendFunc GL_ONE GL_ONE (BlendFunc add).




Omegasigma

Mapper and concept artist

50 XP

16th March 2006

0 Uploads

1,484 Posts

0 Threads

#4 6 years ago

So I'd have to use TGA's with an alpha channel? hmm this presents something interesting Tho in an interesting turn of events I got alpha working on JPG