I recently started playing around with pixel based collision detection, and it is working as I expected. Currently I use the pixel based collision to determine whether or not the player has hit a dangerous object (like a spike or such). All other "tiles" in my world are still being handled by rectangle based collisions. I would like to change that though.

What I do currently for collision with solid tiles is that I check the intersection depth, one axis at a time, and adjust accordingly. This works fine so far. But now I would like to be able to do pixel based collision responses on my tiles, which means that I can no longer use the intersection depth of two rectangles, because this would clearly give some weird results.

I can't seem to find much about pixel based collision responses online. All I actually want to know is how I get the intersection depth between two images...