I guess I don't fully understand the operation of osgviewer. I got to experimenting with a theory on the hangs on Cygwin and decided to try several different type files since I had noticed in the past when cygosgdb_rgb.dll was used programs closed normally but using osgviewer with cow.osg caused a hang. Because of this I decided to try osgviewer with a file type other than an osg.
When I try something simple like osgviewer ./sw.jpg and sw.jpg is in my current directory I get a "No data loaded" like the following: [EMAIL PROTECTED] /usr/tmp $ osgviewer ./sw.jpg CullSettings::readEnvironmentalVariables() DriveManipulator::_height set to ==1.5 CullSettings::readEnvironmentalVariables() CullSettings::readEnvironmentalVariables() itr='/usr/local/bin' FindFileInPath() : trying /usr/local/bin/cygosgdb_jpeg.dll ... FindFileInPath() : USING /usr/local/bin/cygosgdb_jpeg.dll Opened DynamicLibrary cygosgdb_jpeg.dll osgviewer: No data loaded Viewer::~Viewer():: start destructor getThreads = 0 Viewer::~Viewer() end destrcutor getThreads = 0 Destructing osg::View Done destructing osg::View Closing DynamicLibrary cygosgdb_jpeg.dll [EMAIL PROTECTED] /usr/tmp $ but if I use the option --image before the file name the program executes and display and terminates normally. OpenGL extension 'GL_EXT_secondary_color' is supported. OpenGL extension 'GL_EXT_fog_coord' is supported. Viewer::~Viewer():: start destructor getThreads = 0 close(1)0x100baa00 Releasing GL objects for Camera=0x100b5d00 _state=0x100bae50 Closing still viable window 0 _state->getContextID()=0 Doing Flush Done Flush 100 GraphicsContext::decrementContextIDUsageCount(0) to 0 Viewer::~Viewer() end destrcutor getThreads = 0 Destructing osg::View Done destructing osg::View close(1)0x100baa00 close(0)0x100baa00 Closing DynamicLibrary cygosgdb_jpeg.dll [EMAIL PROTECTED] /usr/tmp $ I tried this with .jpg and .gif and .rgb and they all ran and completed normally but for some reason osgviewer for the cow.osg file 1) does not require the --image before the image name and 2) reports "No data loaded" if you do use the --image and 3) the application does not terminate but hangs on exit if it displayys an image (terminates normal if it doesn't load an image) and I have to kill the process with Windows Task Manager: Warning: detected OpenGL error 'invalid enumerant' after RenderBin::draw(,) Viewer::~Viewer():: start destructor getThreads = 0 close(1)0x100cbb68 Releasing GL objects for Camera=0x100b5d00 _state=0x100c9830 Closing still viable window 0 _state->getContextID()=0 Doing Flush Done Flush 100 GraphicsContext::decrementContextIDUsageCount(0) to 0 Viewer::~Viewer() end destrcutor getThreads = 0 Destructing osg::View Done destructing osg::View close(1)0x100cbb68 close(0)0x100cbb68 Closing DynamicLibrary cygosgdb_osg.dll Any thoughts. bk _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
