Advertisement Jump to content
Sign in to follow this  
MrWereWolf

OpenGL Fast copy/restore pixels in framebuffer.

This topic is 4909 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

In my program I need to save then later restore (for multiple times) the pixels in the framebuffer. I found the following solutions: -Copy to a texture (glCopyTexImage2D), then re-display it later. --> Works, but quite slow -glReadPixels/glDrawPixels... --> Never even think -WGL_ARB_buffer_region --> Not supported by ATI cards? -GL_KTX_buffer_region --> Not supported above Radeon 9600? + It is not documented in the SGI OpenGL Extension Registry? As you can see, the solution that could give me reasonable speed is not actually supported. Is WGL_ARB_buffer_region a dying extension? Does ATI have any similar extension? Any other idea for my problem? Thanks! //Mr.WereWolf//

Share this post


Link to post
Share on other sites
Advertisement
have you tried simply rendering to an auxilary buffer, and not clearing it?

dont know if the alpha/Depth is saved there thou... I havn't been able to recall it yet... I tried asking for help, but no-one was able to help me... :/

Share this post


Link to post
Share on other sites
Then behold the new GL_EXT_framebuffer_object extension. In the latest 5.7 catalyst drivers, it is FINALLY supported!

Basically it is a render-to-texture extension which was not being supported by ati cards until a couple of weeks back.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

GameDev.net is your game development community. Create an account for your GameDev Portfolio and participate in the largest developer community in the games industry.

Sign me up!