Jump to content
  • Advertisement
Sign in to follow this  
kevinlynx

Question about jpg and tga file---mixed them like a png file

This topic is 4384 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, Recently I have found there are many games using a jpg and a tag file for their sprites ! As you know , we can use a png file with alpha-channel to transparent them on the screen . This is used for sprites in a game specially . But I have found these games only use jpg and tga file ! And it seems the tga file is only a black-white image ! So ,the questions is : How to use a jpg and a tga file to work together like a png file ? --Especially in HGE . Thanks for your time

Share this post


Link to post
Share on other sites
Advertisement
Load jpg as a normal image, then load the monochrome TGA into the alpha channel of the jpg you loaded.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!