Hi,

why are you not reading the floating point values directly from the FBO without worrying about the final frame buffer precision?

Have a look at the callback in osgmultiplerendertargets for the GL_FLOAT case. You can get a CPU copy of your floating point FBO and manipulate the data as you want.

cheers
jp

Brian R Hill wrote:
I think I found the reason. It looks like X windows doesn't support
floating point pbuffers.

Brian

This is a PRIVATE message. If you are not the intended recipient, please
delete without copying and kindly advise us by e-mail of the mistake in
delivery.
NOTE: Regardless of content, this e-mail shall not operate to bind CSC to
any order or other contract unless pursuant to explicit written agreement
or government initiative expressly permitting the use of e-mail for such
purpose. •
[email protected] wrote: -----

To: OpenSceneGraph Users <[email protected]>
From: Brian R Hill/DEF/c...@csc
Sent by: [email protected]
Date: 08/04/2009 06:02PM
Subject: [osg-users] Offscreen Rendering - clamping problem


Folks,

Sorry for another post on this subject. I just can't figure out how to
disable the clamping of the output. I'm want to render offscreen without a
window with 32 bit floats.

Attached is the sample code I'm working with, it's based on the
osgscreencapture.cpp example. It uses a shader to write an input uniform
float "val" to the pbuffer. The "val" varies from -1.0 ... 2.0.

Any help would be appreciated.

Thanks,

Brian
(See attached file:
offscreenrender.cpp)_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

--
This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html.

This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to