Hi Alexander, Could you please zip the modified files up and then attach them as the forum doesn't handle source files as attachments at all well. Alternatively subscribe to the osg-submissions maillist and post the submission there, as email tends to handle attachments better than the forum - most contributors use this route.
Thanks, Robert. On Mon, Sep 27, 2010 at 2:16 PM, Alexander Irion <[email protected]> wrote: > Hi, > > when I try to to read a ".osgt" file, that contains a Matrixd I got the > following warnings printed on the console: > > AsciiInputIterator::readProperty(): Unmatched property Matrixd, expecting > Matrixf > > I had a look into the code and saw, that _useFloatMatrix in InputStream is > always "TRUE", when reading a ".osgt" file. It can only be set to "FALSE", > when a ".osgb" file is read. > > In MatrixSerializer::readMatrixImplementation then, the double matrix from > the file will be read as float matrix and then converted back to double, > ofcourse with loosing the double precision. > > Please find the attached modification, that first reads the property (either > Matrixf or Matrixd) and then decides the matrix type for reading depending on > the property. > > Is this fix ok, or any other solution? > > > Thank you! > > Cheers, > Alexander > > ------------------ > Read this topic online here: > http://forum.openscenegraph.org/viewtopic.php?p=32098#32098 > > > > > Attachments: > http://forum.openscenegraph.org//files/asciistreamoperator_175.h > http://forum.openscenegraph.org//files/inputstream_184.cpp > http://forum.openscenegraph.org//files/1467_1285589407._194. > http://forum.openscenegraph.org//files/1467_1285589400._360. > > > _______________________________________________ > 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
