Jump to content
  • Advertisement
Sign in to follow this  
BloodLust666

Pixel collision

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

Advertisement
First you should learn about box collision, as that is the first step to take for per-pixel collision. Are you doing this with OpenGL or SDL or what?

Share this post


Link to post
Share on other sites
I don't have much experience with pixel-perfect collision detection, but I'd think that if you want feedback information such as time of intersection and/or contact points and normals, you'd be better off using geometrical proxies such as circles, boxes, or convex polygons. Just a thought.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
For simple discrete collision, ANDing two 1 bit bitmasks together is really fast. If you find a value != 0 after ANDing you have a collision.

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.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!