Changed the default image output format to .osgb as .dds isn't able to represent signed byte, short and int data correctly.
git-svn-id: http://svn.openscenegraph.org/osg/OpenSceneGraph/trunk@14346 16af8721-9629-0410-8352-f15c8da7e697
This commit is contained in:
parent
7bacd73e85
commit
b8dbebeca7
@ -1184,7 +1184,9 @@ int main( int argc, char **argv )
|
|||||||
{
|
{
|
||||||
if (image_3d.valid())
|
if (image_3d.valid())
|
||||||
{
|
{
|
||||||
image_3d->setFileName(name_no_ext + ".dds");
|
std::string image_writeExtension = ".osgb";
|
||||||
|
|
||||||
|
image_3d->setFileName(name_no_ext + image_writeExtension);
|
||||||
osg::ref_ptr<osgDB::Options> options = new osgDB::Options("ddsNoAutoFlipWrite");;
|
osg::ref_ptr<osgDB::Options> options = new osgDB::Options("ddsNoAutoFlipWrite");;
|
||||||
osgDB::writeImageFile(*image_3d, image_3d->getFileName(), options.get());
|
osgDB::writeImageFile(*image_3d, image_3d->getFileName(), options.get());
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user