Jump to content

  • Log In with Google      Sign In   
  • Create Account


opengl framebuffer question.


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
1 reply to this topic

#1 bernie   Members   -  Reputation: 122

Like
Likes
Like

Posted 14 February 2000 - 06:47 AM

Is there any way to setup OpenGL, that glReadPixels returns 16 bit (5:6:5) bitmap. I really like to read/paint pixels in the framebuffer, after my scene rendered. Thanks, bernie Edited by - bernie on 2/14/00 1:18:30 PM

Sponsor:

#2 DaBit   Members   -  Reputation: 122

Like
Likes
Like

Posted 16 February 2000 - 10:16 PM

No, you cannot read back 5:6:5 pixels. Instead, read back 8:8:8 pixels and convert them. But a few warnings:

- glReadPixels is s-l-o-w!
- Drawing pixels manually to the card after rendering kills performance, since you break the rendering pipeline

My suggestion is to render to a 24-bit or 32-bit texture, do a glTexImage2D(), and draw a polygon with it.

DaBit.






Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS