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 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 not that I my LANG env variable is set to "FR" and that French > decimals should be separated with ','. > Is that enough info for you? Or should I run another test? > Hope it helps. > > However, the strange thing is that I can't run GLSL in OSG, but the Spring > (XTA) game has shaders that run on my machine and, well I'm not THAT sure, > but I think it also uses GLSL since the "reflective water" shaders are > ".glsl" files and that I can see the effects in the game. Anyone knows more > about Spring and GLSL? > > Sukender > PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/ > > > Le Mon, 24 Nov 2008 10:19:39 +0100, Robert Osfield <[EMAIL PROTECTED]> a > écrit: > >> Hi Sukender, >> >> You can only call getGLVersionNumber() or any releated OpenGL from a >> thread with a valid graphics context - there is nothing the OSG can do >> about this - it's a characteristic of OpenGL. The locale issue does >> change this. >> >> Running osgviewer will call getGLVersionNumber() when it runs, so >> running it with the env var OSG_NOTIFY_LEVEL to DEBUG will output the >> results of all the extension checks, I'm not sure in the OpenGL >> version number is amongst these. osgviewer doesn't set the locale >> though.... So perhaps osgviewerWX would be a better base. >> >> Robert. >> >> On Mon, Nov 24, 2008 at 9:06 AM, Sukender <[EMAIL PROTECTED]> wrote: >>> 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 >>> avoid this NULL pointer?) >>> >>> Sukender >>> PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/ >>> >>>> [...] >>>> 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 osg::getGLVersionNumber()). >>>> >>>> Robert. >>>> _______________________________________________ >>>> osg-users mailing list >>>> [email protected] >>>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >>> >>> _______________________________________________ >>> osg-users mailing list >>> [email protected] >>> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >>> >> _______________________________________________ >> osg-users mailing list >> [email protected] >> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org > > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org _______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

