Bryan,

My initial thought was that nowhere were you saying that the image was
floating point. Digging further, I realised that TransferFunction should be
doing it for you - I've never used this before - but this line (in
osg/TransferFunction1D.cpp) looks a little odd to me:

    _image->setImage(numX,1,1,GL_RGBA, GL_RGBA, GL_FLOAT, (unsigned
char*)&_colors[0], osg::Image::NO_DELETE);

Shouldn't that be "GL_RGBA32F_ARB,GL_RGBA, GL_FLOAT"?

I guess also doing a texture1D->setInternalFormat(GL_RGBA32F_ARB) might
help, but I think (without looking at the code) that osg probably picks this
up from the image format anyway.

Hope that helps.

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

Reply via email to