Sign in to follow this  

get texture data from vga memory

This topic is 2668 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

hi,

im trying to get a texture from a scene. i already grab the raw image and put it on the vga memory to clean the system memory. now i want to grab it again without reading the raw image file again, so simply read the one that is placed in the vga memory. is it possible? if so, how can i do that?

thanks in advance

Share this post


Link to post
Share on other sites
Well I am not sure if it is possible to access VGA memory and just copy data and what is the reason to clear your image data if you want to use them again later, but you can always use orthogonal projection with rendered quad.
Just create FBO, bind it before rendering quad and than just use texture unit where you stored your texture (the one you want to get data from).
You can also use glCopyTexImage2D() but FBO is much faster.

Share this post


Link to post
Share on other sites

This topic is 2668 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this