Now, I have a picture (Just a simple fire picture, .Jpg format, and 512x512), and I added a Alpha channel to it. Now, I tryed it ingame, and it did not work.
I thought maybe it would use shading, and if so, how would I get it to work.
Edit: It did work, but I could not see through the Alpha channel.
I was wondering is some one could give me a tutorial on Shading, seeing as I can find none in the Master Sticky.
I'm not sure but I think that alpha channel doesn't work on .jpg format Try saving it as .tga format
I also have question about this kinda thing:
How do I make alpha channel on paint shop pro 9?
Either use tga format or just use a simple png with transparent sections.
PNG has file size superiority over TGA format, it gives you all the functionality without the size. Fact of JPEG format is you can NOT use transparencies with them, you must use TGA or PNG for JA if you want a transparency layer. You'll also need to mess around with a transparency shader in the .shader files (I have limited time so I can't help you there)
It worked perfectly with .png format (my new favorite) thanks
Can they load png files? Raven used pngs exclusively for anything with alpha channel needs for map texturing and models. Only menu elements and other special cases still used tgas in JA.
Ok, good news, the PNG worked, but with no transperant parts.
So, I am wondering how I would go about making a shader file for it.
I'll try now, see if it works, if not could some one please help me.
Extract the existing Raven shaders from the pk3. They are overflowing with alpha channel shader code. The shining surface of many textures in game is an application of alpha channeled texture, so don't pick one of those as your example if you are aiming for a shader with totally transparent parts in game.
In any case, the core of your aim is either the blendfunc GL_SRC_ALPHA GL_ONE_MINUS_SRC_ALPHA or alphaFunc (with an appropriate argument like GE128). This depends mainly on where you will use the shader and what are your basic needs for it.