On 9/6/06, Howard James <[EMAIL PROTECTED]> wrote:
Just create an osg::Image with allocate it with the appropriate pixel format and data type and cast the data() pointers to the appropriate type.
I have some data that I want to store in a floating point texture (ie not bound limited at 0-1). If I have an array of floats, how do I go about storing this in an image class and using it to create a texture?
Once you've set up your osg::Image just assign to a texture like you would any other image.
If you want more references on setting up osg::Image just look through the src/osgPlugins for the image plugins.
Robert.
_______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
