TGAGenerationWithPhotoshop

From SWWorkshop

Jump to: navigation, search

I decided to prepare this sample when i faced a question at oyungelistirici web site. In these question Astérix wants to develop Pacman Game but he can't clip pacman black color. Pacman image color overwrite background color.


Image:Pacyy2.jpg

Question: When should I use 32 bits targa ?
Answer:For this sample if you want to clip black color which wrap pacman, you must use alpha channel. And only 32 bit files holds alpha data.

Question: How can we prepare 32 bit TGA files ?
Answer:

  • Open Photoshop.
  • Create new work area. It's important to set working area transparent.

Image:PSNew.JPG

  • Draw pacman in this area

Image:PSPaint.JPG

  • Save this picture 32 bit TGA without any compression

Image:PSSave.JPG Image:PSSave2.JPG

Personal tools