Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

Bliddo

macrumors newbie
Original poster
Oct 15, 2008
3
1
Hi.
I'm currently developing an iPhone game, I need some help to implement the collision detection.
The basic idea is that I have a large han drawn map, tha player should be able to move in all the black regions of it. In OpenGL I obtained that by performing a 1:1 check between the player 32x32 texture and a 32x32 portion of the map texture(the portion where tha player is on obviously).
I used the glGetTexImage and glReadPixels methods to do this, but now in OGL ES there's no glGenTexImage and the ReadPixel is too slow for an handheld device.
Is there a better way to perform per pixel collision checks? I only need a true/false check.
Any ideas?

Thanks
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.