From b8dbebeca79efb19f45370490873990f65f7ebd6 Mon Sep 17 00:00:00 2001 From: Robert Osfield Date: Wed, 2 Jul 2014 15:34:37 +0000 Subject: [PATCH] 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 --- examples/osgvolume/osgvolume.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/examples/osgvolume/osgvolume.cpp b/examples/osgvolume/osgvolume.cpp index ee0210b2e..ca4d05342 100644 --- a/examples/osgvolume/osgvolume.cpp +++ b/examples/osgvolume/osgvolume.cpp @@ -1184,7 +1184,9 @@ int main( int argc, char **argv ) { 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 options = new osgDB::Options("ddsNoAutoFlipWrite");; osgDB::writeImageFile(*image_3d, image_3d->getFileName(), options.get()); }