alpha with 2 jpgs


(stealth6) #1

Title says it all, how can I define the transparency of a jpg image with another jpeg image?

So I have 1 Jpg image with color etc… and 1 jpg image with black and white to define the transparency. How do I get the 2 to work together?
Merging the 2 into a tga file is a possible solution, but I am interested how it works without using a tga file.


(Nail) #2

afaik, you can’t have an alpha channel on a jpg


(stealth6) #3

indeed that’s why it requires 2 images, 1 with the normal image colors and 1 with the alpha information.

I looking for the shader to combine the two.


(Shanks) #4

Why would you want to use jpg? The quality on it is just horrible compared to other formats that support alpha channels…


(stealth6) #5

Well I was curious as to how it works with shaders. Of course I could just use tga like I normally do, but I just want to know… you know? :smiley:

I guess curiosity is the main factor here.


(Pegazus) #6

The only edge I can consider of having an alpha jpg is the amount of size it saves on pk3. Tga takes up big amounts of space.

Anyhow, Sage tried to get it working and I believe even succeeded.


(Avoc) #7

[QUOTE=Pegazus;329058]The only edge I can consider of having an alpha jpg is the amount of size it saves on pk3. Tga takes up big amounts of space.

Anyhow, Sage tried to get it working and I believe even succeeded.[/QUOTE]

However, .tga files are better compressed in a .pk3 than .jpg files, often ending up on the same size. .tga files do take more hunkmeg though.