glReadPixels Problem!!
Hi all!
I''ve a Problem with glReadPixels. I want to read RGBA Values from a buffer. But if I want to read the pixels the RGB Values are read correct but nut the alpha values. The alpha value always is 255 (I''m reading unsigned bytes). I have (0,0,0,0) as the clear color and sending the colors for rendering with glColor4f (and alpha is not euqal to 1.0f). But it doesn''t work!
Any ideas??
Thanks a lot
Corrail
--------------------------------------------------------There is a theory which states that if ever anybody discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable.There is another theory which states that this has already happened...
You sure you have a destination alpha channel? If you don''t ask for one, you won''t get one.
Thanks for you quick answer!
But how can I set a destination alpha channel up? Or what do I have to do to use it?
But how can I set a destination alpha channel up? Or what do I have to do to use it?
--------------------------------------------------------There is a theory which states that if ever anybody discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable.There is another theory which states that this has already happened...
Thanks, problem is solved!!
--------------------------------------------------------There is a theory which states that if ever anybody discovers exactly what the Universe is for and why it is here, it will instantly disappear and be replaced by something even more bizarre and inexplicable.There is another theory which states that this has already happened...
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement