Hi...
osg::ref_ptr<osg::Image> image = new osg::Image;
image->readPixels..... example
if (osgDB::writeImageFile(*image,_filename))
{
std::cout << "Saved screen image to `"<<_filename<<"`"<< std::endl;
}
2009/8/25 Peter Wraae Marino <[email protected]>
> Hi osgUsers,
>
> I have a question about texture to file. Currently I have render to
> texture (RTT) and would like to save this texture to a file. Is there
> a straight forward method of doing this?
>
> anyone?
>
> --
> Regards,
> Peter Wraae Marino
>
> www.osghelp.com - OpenSceneGraph support site
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
--
Maxim Gammer
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org