Re: [osg-users] Effects of locale setting

2008-11-28 Thread Michael
Selon Robert Osfield [EMAIL PROTECTED]: I get 2 glGetString( GL_VERSION ) returns 2.0.6958 Release OK, one bit of the jigsaw. What happens to the osg::getGLVersionNumber() value if you can the locale? For instance WxWidgets changes the locale by default I believe. Hi Robert, Sorry i

Re: [osg-users] Effects of locale setting

2008-11-25 Thread Robert Osfield
Hi David, On Mon, Nov 24, 2008 at 9:26 PM, David Spilling [EMAIL PROTECTED] wrote: Only just caught this thread. I'm happy to update the OBJ plugin (reader only, presumably) if you want to lose the sscanf, as it's only recently I was looking at it anyway. This would be very helpful, as I'm

Re: [osg-users] Effects of locale setting

2008-11-24 Thread David Spilling
Robert, Only just caught this thread. I'm happy to update the OBJ plugin (reader only, presumably) if you want to lose the sscanf, as it's only recently I was looking at it anyway. I assume that you want all sscanf(blah, %f, my_float); to be replaced by sscanf(blah, %s, my_char);

Re: [osg-users] Effects of locale setting

2008-11-24 Thread Sukender
Hi Robert, I get a crash in osg::getGLVersionNumber()... glGetString() returns a NULL pointer. Something you already encountered ( http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/2008-July/014034.html ). I can't answer your question then, sorry. (Or maybe you know how to

Re: [osg-users] Effects of locale setting

2008-11-24 Thread Ümit Uzun
Hi Robert; I have same problem as Sukender and set OSG_NOTIFY_LEVEL = DEBUG and result is as follows; glVersion=2, isGlslSupported=YES, glslLanguageVersion=1.1 Regards. 2008/11/24 Robert Osfield [EMAIL PROTECTED] Hi Sukender, You can only call getGLVersionNumber() or any releated OpenGL

Re: [osg-users] Effects of locale setting

2008-11-24 Thread Robert Osfield
Hi Umit, Which is the OpenGL version string you have on your machine? Robert. On Mon, Nov 24, 2008 at 9:57 AM, Ümit Uzun [EMAIL PROTECTED] wrote: Hi Robert; I have same problem as Sukender and set OSG_NOTIFY_LEVEL = DEBUG and result is as follows; glVersion=2, isGlslSupported=YES,

Re: [osg-users] Effects of locale setting

2008-11-24 Thread Sukender
Hi Robert, I don't know if I did what you expected, but my GL string is always 1.4.0 - Build 7.14.10.4926 and OSG always reports glVersion=1.4, isGlslSupported=NO, glslLanguageVersion=0 on the console even if I call setlocale(LC_ALL, FR_fr); or EN or C at the begining of main(). Please

Re: [osg-users] Effects of locale setting

2008-11-24 Thread Sukender
Hum... forget about the Spring shaders, I found some .fp files (ARB fp ???) that describe water effects. Sukender PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/ Le Mon, 24 Nov 2008 11:42:13 +0100, Sukender [EMAIL PROTECTED] a écrit: Hi Robert, I don't know if

Re: [osg-users] Effects of locale setting

2008-11-24 Thread Paul Melis
Robert Osfield wrote: Hi All, In response to problems with the obj loader when the c local is set to one that use comma for the decimal place (same problem previously affected the .osg) I have begun make the custom atof function I wrote for the .osg plugin as public function of osgDB so it

Re: [osg-users] Effects of locale setting

2008-11-24 Thread Ümit Uzun
Hi Robert, My OpenGL version string only 2. I can only see the major version number. I have OSG-2.6.1 on XP SP2. HTH.Regards. 2008/11/24 Paul Melis [EMAIL PROTECTED] Robert Osfield wrote: Hi All, In response to problems with the obj loader when the c local is set to one that use comma

Re: [osg-users] Effects of locale setting

2008-11-24 Thread Robert Osfield
Hi Paul, On Mon, Nov 24, 2008 at 10:51 AM, Paul Melis [EMAIL PROTECTED] wrote: The OpenGL spec specifies that the return value of glGetString(GL_VERSION) should begin with major_number.minor_number[.release_number], so if the results are locale-dependent and suddenly use a comma instead of a

Re: [osg-users] Effects of locale setting

2008-11-24 Thread Robert Osfield
Hi All, On Mon, Nov 24, 2008 at 11:41 AM, Robert Osfield [EMAIL PROTECTED] wrote: I will do a purge of the OpenGL related atof functions. It'll be interesting to see where problem points may have been, I'll ping this thread once these changes are checked in. I have now converted the OpenGL

Re: [osg-users] Effects of locale setting

2008-11-24 Thread Robert Osfield
I was curious why the .obj plugin that parsing ascii files didn't come up on my searches for atof usage, and the reason is that the code uses sscanf for reading the files. This means that it's a bit more complicated to solve, I can't just do a search and replace... What the code will need is

[osg-users] Effects of locale setting

2008-11-23 Thread Robert Osfield
Hi All, In response to problems with the obj loader when the c local is set to one that use comma for the decimal place (same problem previously affected the .osg) I have begun make the custom atof function I wrote for the .osg plugin as public function of osgDB so it could be used else where.

Re: [osg-users] Effects of locale setting

2008-11-23 Thread michael77
Selon Robert Osfield [EMAIL PROTECTED]: So... could users who's machine are set up for a locale that uses the command convention for decimal places please post what results they get for the OpenGL version string, and what the OSG parses this string to be (i.e. the result of

Re: [osg-users] Effects of locale setting

2008-11-23 Thread Robert Osfield
Hi Micahael. On Sun, Nov 23, 2008 at 3:20 PM, [EMAIL PROTECTED] wrote: Selon Robert Osfield [EMAIL PROTECTED]: So... could users who's machine are set up for a locale that uses the command convention for decimal places please post what results they get for the OpenGL version string, and