Hi, On Wed, 2010-02-03 at 21:31 +0100, Georg Wöß wrote: > On 2010-02-03 17:27, Marcus Lindblom wrote: > > On 2010-02-03 13:53, Georg Wöß wrote: > > > >> On 2010-02-02 18:47, Carsten Neumann wrote: > >> > > > >>> hm, looking at a diff between the glut and qt4 .osg files, I see that > >>> the qt4 files have a "," as decimal separator in floating point numbers > >>> while the glut files contain a "." (e.g. 1,234e+02 vs. 1.234e+02). > >>> It looks as if the locale is being changed and that might well confuse > >>> the vrml loader. Try setting the C and C++ locales to one that use "." > >>> as decimal separator and see if that makes a difference. > >>> > > > >> This suggestion solved my problem. > >> > >> Thank you and all others who helped me. > >> > > I'd never thought of that, but it makes sense. Where there no errors > > trying to read the file?!! > > > > Perhaps we should adjust the localein the VRMLLoader temporary if > > necessary) since VRML does specify . and not , in numbers, right? > > > > Cheers, > > /Marcus > > > > > No, there were no errors.
not surprisingly as 1.500 is a valid number (assuming a German locale), just that it is 1500 and not 1.5. Just switching the locale for loading also don't seem to work as this is as far as I understand it no thread safe. I'll try to figure out if we can rewrite characters so that we can replace the . with the locale specific char. This seems to be the best approach. kind regards gerrit ------------------------------------------------------------------------------ The Planet: dedicated and managed hosting, cloud storage, colocation Stay online with enterprise data centers and the best network in the business Choose flexible plans and management services without long-term contracts Personal 24x7 support from experience hosting pros just a phone call away. http://p.sf.net/sfu/theplanet-com _______________________________________________ Opensg-users mailing list Opensg-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/opensg-users