Hi Ulrich & Hroach, I tried with your sample code and it is solution for my question.
@ Hroach - Only thing to be added in your code is, after memcpy(), dataptr needs to be assigned to image->setImage(). Code: image1->setImage( 2,2, 1, GL_RGBA8, GL_RGBA, GL_FLOAT, (unsigned char *)dataptr, osg::Image::AllocationMode::NO_DELETE ); ... Thank you! Cheers, Kedar ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=48727#48727 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

