Jump to content
  • Advertisement
Sign in to follow this  
musicon

OpenGL Transparent pixels

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

This is quite an advanced XNA topic hence its going here not in Beginners forum. While I can do most standard things in xna (and to a point directx and opengl) I am stumped on the process of finding transparent pixels in an image (for collision detection purposes). I am in need of some simple tutorials somewhere on the web or even a book that explains this properly. Riemers does this in the cannongame tutorial but it feels like running before walking, even with a good knowledge of all the stuff up to that point in that game.

So if you have seen a useful explanation (such as setting colors to 2d array in the first place) please post a link.

Share this post


Link to post
Share on other sites
Advertisement
There are some great tutorials on the app hub for collision detection:

http://create.msdn.com/education/catalog/tutorial/collision_2d_rectangle
http://create.msdn.com/education/catalog/tutorial/collision_2d_perpixel
http://create.msdn.com/education/catalog/tutorial/collision_2d_perpixel_transformed

Sounds like you want the 2d perpixel tutorial, or if you are rotating & resizing your sprites, the 2d perpixel transformed.

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!