<div dir="ltr"><div><div><div>Hi.<br></div>I have osg::Texture that is attached to camera, it contains a rendered scene (deferred rendering). I want to save it to a PNG file.<br></div>I tried to use osg::Texture::getImage(), but the resulting osg::Image seems to be invalid, because osgDB::writeImageFile() crashes with it.<br></div><div>What's the correct way to convert Texture to Image?<br></div><div>Thanks.<br></div></div>