[osg-users] Float textures seem to be clamped in GLSL
jpdelport at csir.co.za
Thu Mar 5 07:39:28 PST 2009
Thrall, Bryan wrote:
> Brian R Hill wrote on Wednesday, March 04, 2009 5:41 PM:
>> // disable clamping
>> osg::ClampColor* clamp = new osg::ClampColor();
> osg::StateAttribute::ON |
> I am sad to report that that doesn't work either :(
>> Is there something I'm doing wrong with osg::TransferFunction1D, or is
>> my understanding wrong?
I'm not familiar with osg::TransferFunction1D, but I'm sure that float
texture data can reach shaders without clamping, we use it all the time.
I'd suggest creating an osg::Image that is attached to a texture and see
if the values then work properly, you can modify the image data
directly. Have a look at the osgprerender example when the options --hdr
and --image are enabled. There are e.g. negative values in the image.
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.
More information about the osg-users