Skip to main content
GameDev.net gamedev.net
🔒 Locked

Reading Pixel Colours

Started by shalrath Aug 29, 2001 at 6:23 AM 1 replies 250+ views
Original Post
shalrath
shalrath
For my 2D tile based game I have two images involved in a collision test (there is also a background drawn), I detect that they are over one another, and want to test each at a per-pixel level, to see if they both have a non-transparent colour anywhere in my collision space, is there any way to do this real-time with open GL calls?
zedzeek
zedzeek
well what we used to do years back for 2d stuff is store the image data some where as 1''s and 0''s + just do an AND operation between the two.

Topic Locked

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

Sign in to reply to this topic.