I need to render a osg:Geometry to an osg::Image and save that to disk,
is this possible?
I know how to write the image to disk (osgDB::writeImageFile) but first
of all I need to "generate" the osg:Image.
Regards
Dominic
--- Begin Message ---
On 28/12/09 3:20 PM, Dominic Stalder wrote:
> I would like to write my selfmade lightning to a texture file, so I can
> smooth it with a texture shader.
>
> Can someone tell my how to do this the simplest way?
osgDB::writeImageFile(const osg::Image& image, const std::string& filename);
Only a few plugins support writing image files, .png is one of them and might
be a good
choice, since it's also lossless compression.
Cheers,
/ulrich
--- End Message ---
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org