Hi Thomas,
On Tue, Dec 15, 2009 at 7:58 PM, Thomas Canipel <[email protected]> wrote: > I am actually trying to understand the OSG Volume Example, The alpha > coefficient allow me to play with the extinction coefficient, but have > problem to use the transfer function. What does represent the first parameter > when we set a new Color ? The transfer function first value relates the intensity value of the 3D image. On the GPU the intensity value will be read from the 3D texture, then used to look up the RGBA value from the transfer function's 1D texture (that is created automatically from the osg::TransferFunction values). > transferFunction->setColor(value, osg::Vec4(1.0,1.0,1.0,apha)); > > this line permit normally to set a transferControl point I think... in this > case does the function will color all the vortex between ? and my value with > this color and the opacity in parameter ? I'm not clear what you mean here. The values between the different colours you assign to the TransferFunction will be interpolated. Robert. _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

