Jump to content

View more

Image of the Day

Inventory ! Va falloir trouver une autre couleur pour le cadre D: #AzTroScreenshot #screenshotsaturday https://t.co/PvxhGL7cOH
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

opengl framebuffer question.

4: Adsense

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   

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

#2 DaBit   Members   

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.