Jump to content
  • Advertisement

Archived

This topic is now archived and is closed to further replies.

Kyo

transparent masks?

This topic is 5744 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

I''m using quads to do a 2D game where a textured quad would represent an object but I was wondering, if I have my ship as a texture on a quad how would I apply a mask ontop of that to make the black around the ship transparent?

Share this post


Link to post
Share on other sites
Advertisement
Look up alpha testing in the docs - if you use a format like .png you can use it as a RGBA texture with alpha test set to less-than, and a value somewhere between 0.4 and 0.6 usually looks good

Share this post


Link to post
Share on other sites
OrangyTang is correct. Just wanted to add: TGA is a very easy to use format that supports alpha channels.

2DNow - Specializing in yesterday''s technology today!  

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

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

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!