Advertisement

How do I make a transparent .tga

Started by September 10, 2003 11:13 PM
0 comments, last by Death Hamster 21 years, 4 months ago
I am trying to incorperate semi transparent textures in a game I am making. I have some code that reads in .tga files and it works with provided sample .tga files. However when I try to import my on .tga files it refuses to read or render due to an incorrect format. Does any one know of a utility to make uncompressed .tga files with a transparency property? Alternatly I would apreciate an explination on how do you use Paint Shop Pro 7 do this.
Programming is like dancing through landmines:The programmer is the choreographer, the computer is the dancer and when an error occurs something blows up.
Im not used to PSP but i can use PhotoShop and im assuming that PSP has a way to add or select an alpha channel.

The normal channels of and image are the Red, Green and Blue ones.
However if you want to have transparency in a *.TGA you need an alpha channel( a greyscale channel that specifies how transparent a certain part of the image is).

Find out how to add or select the alpha channel in PSP.

A tga WITHOUT an alpha channel is a 24bit image(RGB) while a tga WITH and alpha channel is a 32bit image(RGBA).

Hope this helps.

[edited by - FlyingDemon on September 10, 2003 12:24:22 AM]

This topic is closed to new replies.

Advertisement