Hi, simplest technique is creating osg::Image, then assigning it to texture like this:
Code: osg::Image* image = new osg::Image; image->allocateImage(16, 1, 1, GL_RGBA, GL_FLOAT); image->setInternalTextureFormat(GL_RGBA); osg::Vec4* dataPtr = reinterpret_cast<osg::Vec4*>(image->data()); memcpy(); // copy your array Vec4Array osg::Texture2D* texture = new osg::Texture2D; texture->setImage(image); Cheers, Filip ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=48593#48593 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

