Mike, I've attached the output from testing this on my Nvidia Quadro FX 1100. I'm using an OSG tarball from May 9 and the Nvidia 81.67 drivers which I downloaded on Feb 22.
Basically, I'm getting the same error as Martin Naylor. In fact, I've also been getting errors with your fractal GLSL examples that say something about "for" statements. ((42) : error C5013: profile does not support "for" statements) I figured that it must be that my card is too old for full support of GLSL. Thom -- Thom DeCarlo --------------------------------- Where are we going and why am I in this handbasket? > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:osg-users- > [EMAIL PROTECTED] On Behalf Of Mike Weiblen > Sent: Saturday, May 20, 2006 6:20 PM > To: osg users > Subject: [osg-users] GLSL uniform arrays v. GPU drivers > > Hi all, > > With the recent addition to OSG of support for GLSL uniform arrays, my > testing > leads me to believe there's much variation in how well GPUs and drivers > actually > support that GLSL feature. It might be useful to develop a simple set of > OSG > example files that will help evaluate vendor's GLSL capabilities. > > For example, attached is a simple .osg scene using uniform arrays that can > be > loaded with the latest OSG in CVS. The relevent GLSL array code is: > > uniform vec3 Color2[2]; > ... > int i = int( mod( osg_FrameTime, 2.0 ) ); > vec3 color = mix(Color2[i], Color1, colorSelect) * LightIntensity; > > The concept is the shader uses osg_FrameTime to toggle between the two > colors in > the Color2[] array. > > When run on my laptop's ATI Mobility Radeon 9800 under WinXP, the > following > message is displayed: > > "Link successful. The GLSL vertex shader will run in software due to the > GLSL > fragment shader running in software. The GLSL fragment shader will run in > software - unsupported language element used." > > Because it's running in software fallback mode, the framerate is approx > 1Hz. > > I'm curious if anyone else could try running this .osg file on their > GLSL-capable GPU, and report their result. Also feel free to create new > test > cases if you find other spotty implementations. > > Thanks > -- mew _______________________________________________ osg-users mailing list [email protected] http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/
