Hello Johannes,

On 19.09.2010 14:30, Johannes Brunen wrote:
> after some hiatus, I'm back to my high resolution image tests. I have tried
> to come up with a framebuffer based solution but I didn't get it quite
> right. I have written an example,
>
> (http://drop.io/OpenSG_RenderEngine hugeimage.cpp)
>
> which basically consists of two parts. The first one simply uses the
> GrabForeground. It is activated by pressing the key '1' and it works
> perfectly fine. It is implemented in the function 'writeHiResScreenShot'.
> However, the problematic case is the second part, which should solve the
> very same procedure but with a FBO. It is activated by key '2' and has the
> entry point 'writeHiResScreenShotFBO'. The generated image is always black.
> I'm doing something wrong but I can't grasp it. I need a little help with
> this one.

there is a colBuf->setReadBack(true) missing, you already enable post 
processing on the fbo, but not the actual read back of the color buffer. 
I've not yet tried running your program, so it's possible there is 
something else missing, I'll give it a try tomorrow.

        Cheers,
                Carsten

------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Opensg-users mailing list
Opensg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensg-users

Reply via email to