Sign in to follow this  
Etyrn

Reading specific pixels from a texture...

Recommended Posts

I've done pretty much all I can to figure out how to do this on my own. Hell, I even opened up gl.h and looked for functions that could possibly do it and then corresponding tutorials for said functions. I'm stuck. Basically, I have a texture all set up. Say it's 256x256, how would I find out the RGB values at say... 12x, 67y? And is there various versions of this (like i, f, etc)? Because I'm hoping to get it in a 0-256 value (unsigned byte), but I could always transfer from another data type. Anyways... any and all help is much appreciated on the subject! -Etyrn

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I had the same problem. I looked for a sort of glGetTexSubImage2D() but it does not exist. On www.opengl.org, I found someone who said something like "why implementing something in the hardware if that thing can be done in software (keep a copy of your texture) ???"
I don't know if gl 2.0 will include this, but anyway, I've given up.
Sorry. :)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this