Hi all,<br><br>I want to do RTT with HDR saving only one component (GL_LUMINANCE or GL_INTENSITY)<br>There is my code :<br><br>myHDRTexture->setFilter(osg::Texture::MIN_FILTER,osg::Texture::LINEAR);<br>myHDRTexture->setFilter(osg::Texture::MAG_FILTER,osg::Texture::LINEAR);
<br> myHDRTexture->setInternalFormat(GL_INTENSITY16F_ARB);<br>myHDRTexture->setSourceFormat(GL_INTENSITY);<br>myHDRTexture->setSourceType(GL_FLOAT);<br><br>myCameraHDR->setRenderTargetImplementation(osg::CameraNode::FRAME_BUFFER_OBJECT);
<br>myCameraHDR->setRenderOrder(osg::CameraNode::PRE_RENDER);<br>myCameraHDR->attach(osg::CameraNode::COLOR_BUFFER,myRenderHDRTexture);<br><br>when I look values on my texture they are clamped at 1 and if I put :<br>
 myHDRTexture->setInternalFormat(GL_RGBA16F_ARB);<br>
myHDRTexture->setSourceFormat(GL_RBA);<br><br>my texture contains values upper than 1<br><br>Someone have an idea? (I don't need saving three component because they are the same)<br><br>thanks in advance<br><br>bnua
<br>