[osg-users] Serializer bug: not writing double-precision to osgt

2011-03-27 Thread Eduardo Poyart
Hello, If I use an ADD_MATRIXD_SERIALIZER to write my osg::Matrixd to an osgt file, the serializer writes single-precision instead of double-precision. Writing to osgb files work fine. It's likely this happens with all float data, not just Matrixd. Is it a known problem? Thanks Eduardo ___

Re: [osg-users] Serializer bug: not writing double-precision to osgt

2011-03-28 Thread Robert Osfield
HI Eduardo, Which version of the OSG are you using? A few months back I did some bug fixes for the serializers that related to Matrix output. If the problem still exists in svn/trunk then please post a small example that reproduces the problem so we can have a look at it. Thanks, Robert. On Mo

Re: [osg-users] Serializer bug: not writing double-precision to osgt

2011-03-28 Thread Eduardo Poyart
I'm on 2.9.9. Sorry, I don't know if it happens on trunk... Do you remember specifically changing the way the serializer outputs doubles in case of an ascii output? It could be because, by default, ostream's << operator uses float precision, even if you're outputting a double. Thanks Eduardo On

Re: [osg-users] Serializer bug: not writing double-precision to osgt

2011-03-28 Thread Wang Rui
Hi Eduardo and Robert, 2011/3/29 Eduardo Poyart : > It could be because, by default, ostream's << operator uses float precision, > even if you're outputting a double. > If so, we could just make some changes to the AsciiOperator.h in src/osgPlugins/osg directory. It manages the output of float an