Hi Gerrit. In OSGTextureBuffer.cpp, line 185, you're using an ImagePtr which doesn't work. Changing it quickly to ImageRefPtr made it compile. And I see at least my red background in the output image. The model is still mising, but I guess that this is my fault...
One thing: Obviously, you get my mails, but they don't appear on the list (as fas as I can see) for me. Is there anything wrong? Thanks again for your quick response, Dominik Gerrit Voss schrieb: > 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 > > ------------------------------------------------------------------------- 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
