oli tour wrote on 2013-01-27: > I am just wondering how can I set the precision of the UserCenter member > in a PagedLod. My problem is that I have coordinates higher than 1 > million, and that the writer only keeps 5 decimals. I thus loses10 m > precision, and this prevent the more detailled PagedLod to be loaded (or > misplaced) when zoomming. > > when I do a osgconv file.osgb file.osgt, here is how my UserCenter > PagedLod appears: > > > Code: > UserCenter 1.01925e+06 6.28286e+06 54.9003 21.7958 > > > > The center is however computed in double, so I exactly know the difference > between the value displayed above and the right one. > > So, is there a way to specify an option when writing the node, to have a > higher precision?
It looks like the osgt serializer supports a "precision" option that should do what you want; simply pass an option string that specifies the precision you want, like so: osgconv -O "precision 8" file.osgb file.osgt (note the option flag is capital "o", not zero) Hope this helps! -- Bryan Thrall Principal Software Engineer FlightSafety International [email protected] _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

