Skip to main content
GameDev.net gamedev.net
๐Ÿ”’ Locked

How do I program pixel by pixel collision?

Started by KnTenshi Mar 27, 2009 at 1:37 PM 0 replies 700+ views
Original Post
KnTenshi
KnTenshi
Right now, I have a simple collision detection based on a radius. Works well with circular objects, but mot so much with anything else. It doesn't help that the collision detection code has gotten a bit complicated and works only when it wants to. How would I go about making a precise collision based on the non-transparent pixels of an image? I'm using C++ and Direct3D in Visual Studio Express.
Eskapade
Eskapade
http://lazyfoo.net/SDL_tutorials/lesson18/scan.gif
http://lazyfoo.net/SDL_tutorials/lesson18/index.php

This should help you, although it's done with SDL here.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.