diff --git a/examples/osgvolume/osgvolume.cpp b/examples/osgvolume/osgvolume.cpp index b8066e8a5..d1883d4cf 100644 --- a/examples/osgvolume/osgvolume.cpp +++ b/examples/osgvolume/osgvolume.cpp @@ -1495,7 +1495,7 @@ int main( int argc, char **argv ) // arguments.getApplicationUsage()->addCommandLineOption("--raw ","read a raw image data"); // construct the viewer. - osgViewer::Viewer viewer; + osgViewer::Viewer viewer(arguments); // if user request help write it out to cout. if (arguments.read("-h") || arguments.read("--help")) @@ -1620,7 +1620,11 @@ int main( int argc, char **argv ) } } - if (!image_3d) return 0; + if (!image_3d) + { + std::cout<<"No model loaded, please specify and volumetric image file on the command line."<