Thanks Johannes, fix merged and submitted to svn/trunk.
On 24 August 2012 08:42, Johannes Scholz <[email protected]> wrote: > Hi, > > here is a patch for the Ascii osgt writer plugin. Problem was caused by > osgDB::PropByValSerializer in Serializer.h which misses "std::showbase" and > "std::noshowbase". > > >> Hi guys, >> >> got a problem with the osgt reader NOT READING the nodemasks from the file. >> Might be a problem with the hexint serializer, but i did not figure that >> out, yet, because i'm not really familiar with that. >> >> Writing the nodemask works fine. See the dummy file I attached. I just >> exported an empty Geode from our software. If a attempt to re-read the file, >> it works just fine, but without the nodemask - which is set to 0 ! >> >> Reproducer with OpenSceneGraph 3.1.2: >> >> Just execute >> > osgconv test.osgt test2.osgt >> >> Then open test2.osgt with your favorite code editor and compare. Smile >> >> Any suggestions? >> >> Thank you! >> >> Cheers, >> Johannes > > > > >> I just figured out, that the osgt writer does not write the "0x" in front of >> the hexint value. That seems to be the problem. Manually adding the 0x on >> all hexint values makes the output file have the nodemask value correct but >> , again, missing the 0x. > > > With the patch osgt writing and reading nodes with nodemasks works just fine. > > > Best regards, > > ------------------------ > --- > Johannes Scholz > Software Engineer > P3 Voith Aerospace GmbH, Bremen, Germany > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=49488#49488 > > > > > _______________________________________________ > 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
