Skip to main content
GameDev.net gamedev.net
🔒 Locked

Framebuffer Objects and glDrawPixels

Started by ohlenbg Jan 5, 2007 at 8:44 AM 1 replies 700+ views
Original Post
ohlenbg
ohlenbg
Hi everybody, for debugging purposes I want to draw a framebuffer object into a different context using glDrawPixels. I use the fbos for shadows and picking and would like to see there content on the screen. Could you tell me who to do that? Thanks in advance for your help. Regards, Jan
zedzeek
zedzeek
what do u mean diff context (if u mean draw the FBO texture onscreen)
just bind the texture + draw a quad
for depth textures u will need to turn of the texture compare function ie set it to GL_NONE
also in the shader u will need to access the texture as texture2D + not shadow2D
ohlenbg
ohlenbg
Yes, I want to draw to contents of the fbo onto the screen, and I know how to do it by mapping the texture onto a quad. But I would like to know, how it is possible to write it directly into the frame buffer.

Thanks for your help.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.