-
Texture pixel value
I'm making a 2D platformer and I'd like to have per-pixel collsion detection. Rather than making a bit-mask for the textures I load to test for collisions, I'd like to simply get the color value located at a specific point within a texture. Is there any way that I can do this?
-
Super Moderator
OpenGL Guru
Re: Texture pixel value
Only to keep a copy of the texture in memory and test it. It may be better for your problem to store a bitmap for the image.
Using OpenGL for texel level queries would be very inefficient by comparrison.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules