Hi Sukender, I've just merged your changes but when doing:
osgconv cow.osg cow.3ds I get a hang, breaking the app in gdb I get a stack trace: (gdb) where #0 0x00007fafb5871794 in std::string::find_first_of () from /usr/lib/libstdc++.so.6 #1 0x00007fafb37436ce in is3DSpath () from /home/robert/OpenSceneGraph/lib/osgPlugins-2.9.7/osgdb_3ds.so #2 0x00007fafb3748dee in WriterNodeVisitor::writeMaterials () from /home/robert/OpenSceneGraph/lib/osgPlugins-2.9.7/osgdb_3ds.so #3 0x00007fafb373a1a3 in ReaderWriter3DS::createFileObject () from /home/robert/OpenSceneGraph/lib/osgPlugins-2.9.7/osgdb_3ds.so #4 0x00007fafb373a3ab in ReaderWriter3DS::doWriteNode () from /home/robert/OpenSceneGraph/lib/osgPlugins-2.9.7/osgdb_3ds.so #5 0x00007fafb3739828 in ReaderWriter3DS::writeNode () from /home/robert/OpenSceneGraph/lib/osgPlugins-2.9.7/osgdb_3ds.so #6 0x00007fafb7aabb1a in osgDB::Registry::writeNodeImplementation () from /home/robert/OpenSceneGraph/lib/libosgDB.so.63 Could you have a look at these. I'll revert my local changes till you've cleared up this issue. Cheers, Robert. On Fri, Jan 22, 2010 at 12:49 PM, Sukender <[email protected]> wrote: > Hi Robert, > > Oops... I'm sorry I forgot to specify the BINARY mode for reading/writing 3DS > files... so they appeared corrupted with previous submission. Please use the > attached ReaderWriter3DS.cpp. > > Cheers, > > Sukender > PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/ > > ----- "Sukender" <[email protected]> a écrit : > >> BTW, shouln't the getPathRelative() function (WriteNodeVisitor.cpp, >> same as in FBX plugin) be included in osgDB/FileNameUtils? >> >> Sukender >> PVLE - Lightweight cross-platform game engine - >> http://pvle.sourceforge.net/ >> >> ----- "Sukender" <[email protected]> a écrit : >> >> > Hi Robert, >> > >> > Once again some changes on the 3DS reader/writer... In two words: >> > "less crashes". >> > >> > Changelog from rev.10974: >> > - Added support for extended filenames (=not 8.3) for images: reads >> > without crashing, optionnally write extended filenames (correctly >> > truncate names if option is OFF). Write option is OFF by default. >> > - Improved identifiers generation in duplicate name handling (was >> > limited to 1000 name collisions, which can be very short for some >> > usages). >> > - Set all read/write operations use a custom log function that will >> > redirect lib3DS log to osg::notify() (was only used for streams) >> > - Removed custom code (now uses osgDB::getFilePath()) >> > - Added missing supportsOption() calls >> > - Cleaned a few minor things >> > >> > Cheers, >> > >> > Sukender >> > PVLE - Lightweight cross-platform game engine - >> > http://pvle.sourceforge.net/ >> > >> > _______________________________________________ >> > osg-submissions mailing list >> > [email protected] >> > >> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org >> _______________________________________________ >> osg-submissions mailing list >> [email protected] >> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
