I believe that I have found a possible parsing problem with how the rot, trans, scale pseudo loaders parse the parameter string. To begin i have two systems that I currently develop on the primary difference is that on system A i have osg 3.0.1 installed and on system B I still have osg 3.0.0 (Currently the configuration of system B is scheduled for a update. To add insult to injury I have no control /and limited input in how and when this event is supposed to occur.)
when I attempt to load a model on both machines with the following string >osgviewer booster.flt sustainer.flt.35,0,0.rot in this particular case both system will show the sustainer rotated about the X axis 35 degrees. I then took it as faith that in this case the "rot" pseudo loader plugin was working properly. But when i try to enter a floating point attribute with a decimal place the same pseudo loader fails on both systems >osgviewer booster.flt sustainer.flt.35.54,0,0.rot Warning: Could not find plugin to read objects from file "sustainer.flt.35". Subfile "sustainer.flt.35" could not be loaded Examining the plugins source code located in directory src/osgPlugins/rot/ReaderWriterROT.cpp I believe I found how the code's author Mike Weiblen had a solution, inside a static boolean function getFilenameAndParms. That by enclosing the parameter portion in either '[ ]' or '( )' the floating point attribute would be parsed correctly. Example >osgviewer booster.flt sustainer.flt.[35.54,0,0].rot Should be sufficient to work as expected. As it did indeed do on the system A, but on system B the result was different. On system B while the osgviewer did open only the booster was rendered and on the cmdline the following error message was generated. Example >osgviewer booster.flt sustainer.flt.[35.54,0,0].rot osgviewer: No match. then the viewer promptly exits without rendering even the booster model. Looking on the forum and in the code itself I believe that it is a parsing error and in particular how sscanf() is funcitioning. From my own personnel experience as a developer and from a thread on this forum http://forum.openscenegraph.org/viewtopic.php?t=10143&highlight= I have done similar testing with both scale and trans psuedo loader and have encountered similiar results. Am I missing something? And and all help will be greatly appreciated. Cheers, Scott ------------------ Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=47645#47645 _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

