Hello

I have a camera attached to a texture for writing to FBO. The texture is
GL_RGBA32F_ARB and the app works great.
Sometimes I need to save the texture (the output of the camera) in 32 bit,
so I tried reading the pixels in various ways, none worked as I wished:

 1. Trying to attach the camera to an image gave the right results, but
slowed down the application tremendously (probably because of the call to
glReadPixels at each frame).

2. glReadPixels (or Image::readPixels) with GL_RGBA and GL_FLOAT gave
results in float, but not in 32 bit precision. i.e., the values were clamped
to 8 bits (0, 1/255, 2/255 etc.)

Is there a way to achieve what I want and not have it work so slow?
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to