Hi,
The normal method given in many examples to create a Texture2D, is using a
Image file.
Code:
osg::ref_ptr<osg::Texture2D> texture = new osg::Texture2D;
osg::ref_ptr<osg::Image> image = osgDB::readImageFile("Images/lz.rgb" );
texture->setImage( image.get() );
Instead, I have a osg::Vect4Array in which I have color information (rgba).
How can I use this Vec4Array to create Texture2D?
Thank you!
Cheers,
Kedar
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=48585#48585
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org