Re: [osg-users] Getting the Image from a Texture2D used as a render target

2008-04-02 Thread Guy
Well, the simplest way to retrieve the image from the RTT texture is to attach an image to the color buffer of the camera. Of course this slows down the rendering loop if you read every image rendered. So it is possible to attach the image only before the frames you actually want. When changing

Re: [osg-users] Getting the Image from a Texture2D used as a render target

2008-04-02 Thread J.P. Delport
Hi, look at the osgprerender example where an image is attached to the RTT camera. Search for -attach. You do not need to call readImage yourself. rgds jp Guerrero, Michael (CIV) wrote: After looking into this further, it seemed that using glGetTexImage would be able to copy from a texture

Re: [osg-users] Getting the Image from a Texture2D used as a render target

2008-04-01 Thread Guerrero, Michael (CIV)
After looking into this further, it seemed that using glGetTexImage would be able to copy from a texture used as a render target (FBO). I have tried this only to be left with a black texture that never gets filled in. I know that function works by grabbing whatever texture is currently bound and