Hi, On Tue, 2008-09-30 at 13:01 +0200, Dominik Rau wrote: > Hi. > > I just noticed, that the FBO classes in 2.0 are missing the ReadBuffer > field that allows to read the (2D-) texture back to system memory. I > think that it should be a rather small task to add it (calling > glReadPixels etc...) but I'm not sure where to place it in the new > structure. Could someone be so kind and add it? This would be highly > appreciated, as I really need that feature...
I did the changes could you give it a try. Basically you will have to do 2 things. First tell the TextureBuffer to readback. Second enable the deactivate postprocessing for the FBO. Something like: pTexBuffer->setReadBack(true); pFBO->setPostProcessOnDeactivate(true); I added this to the testSimpleStage example so you can use that as a reference. kind regards, gerrit ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ Opensg-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/opensg-users
