Archived

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

Kyo

transparent masks?

Recommended Posts

Kyo    154
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
OrangyTang    1298
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
llyod    122
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