On Tue, 2008-01-08 at 18:04 +0100, Kyungdahm Yun wrote: > Hi Art, > > First, thanks for releasing nice code! I gave it a try on Windows > Vista machines, one with GeForce 6800 and the other with GMA X3100. > Compilation went fine with few modification for Visual Studio 2005. > But when it's fired to run, the example code started throwing out some > GLSL errors and warnings, as Markus already mentioned. > > 1. Most of them were about function overloading. At least on my > machine, 'int' and 'float' could not be swapped as a function > parameter. I thought it's a strict syntax of GLSL, but I'm not pretty > sure it's still true. > > 2. 'texture2DLod' could not accept its second parameter as 'int' or > even 'float. It had to be 'vec2'. There was another case with 'vec4', > but I forgot the name. Sorry. > > 3. 'textureSize2D' was not supported on GeForce 6800. It seems to be a > new extension for G80. I just replaced it with a constant value:) > > After a few tweaks, a beautiful teapot got rendered on my screen, but > I'm afraid if it's meant to be like this form due to my old graphics > card. I guess a new graphics card like G80 is not suffered from these > problems, and that's why you have not encountered any. By the way, the > example code ran on X3100 just crashed while initializing Viewer > class. I'm not sure what the problem is, but in my case, Viewport > failed to get allocated. > > I hope it helps you to improve osgPPU!
I'm seeing these same problems. textureSize2D appears to be a shader4 thing: http://www.opengl.org/registry/specs/EXT/gpu_shader4.txt ...so is this only going to work properly on new cards? Mine is only a year old, but I guess it's foolish to think it's not deprecated after that long... :) Attached is a log of the errors I get on my Quadro 2500M card. > Regards, > Kyungdahm > _______________________________________________ > osg-users mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org >
FRAGMENT glCompileShader "" FAILED FRAGMENT Shader "" infolog: (37) : warning C7011: implicit cast from "int" to "float" (32) : error C1115: unable to find compatible overloaded function "textureSize2D" (32) : error C1060: incompatible types in initialization (32) : error C1115: unable to find compatible overloaded function "textureSize2D" (33) : error C1115: unable to find compatible overloaded function "textureSize2D" (33) : error C1060: incompatible types in initialization (33) : error C1115: unable to find compatible overloaded function "textureSize2D" (37) : warning C7011: implicit cast from "int" to "float" (38) : error C1115: unable to find compatible overloaded function "textureSize2D" (32) : error C1060: incompatible types in initialization (44) : warning C7532: global function exp requires "#version 110" before use glLinkProgram "" FAILED Program "" infolog: Fragment info ------------- (37) : warning C7011: implicit cast from "int" to "float" (32) : error C1115: unable to find compatible overloaded function "textureSize2D" (32) : error C1060: incompatible types in initialization (32) : error C1115: unable to find compatible overloaded function "textureSize2D" (33) : error C1115: unable to find compatible overloaded function "textureSize2D" (33) : error C1060: incompatible types in initialization (33) : error C1115: unable to find compatible overloaded function "textureSize2D" (37) : warning C7011: implicit cast from "int" to "float" (38) : error C1115: unable to find compatible overloaded function "textureSize2D" (32) : error C1060: incompatible types in initialization (44) : warning C7532: global function exp requires "#version 110" before use FRAGMENT glCompileShader "" FAILED FRAGMENT Shader "" infolog: (37) : warning C7011: implicit cast from "int" to "float" (32) : error C1115: unable to find compatible overloaded function "textureSize2D" (32) : error C1060: incompatible types in initialization (32) : error C1115: unable to find compatible overloaded function "textureSize2D" (33) : error C1115: unable to find compatible overloaded function "textureSize2D" (33) : error C1060: incompatible types in initialization (33) : error C1115: unable to find compatible overloaded function "textureSize2D" (37) : warning C7011: implicit cast from "int" to "float" (38) : error C1115: unable to find compatible overloaded function "textureSize2D" (33) : error C1060: incompatible types in initialization (44) : warning C7532: global function exp requires "#version 110" before use glLinkProgram "" FAILED Program "" infolog: Fragment info ------------- (37) : warning C7011: implicit cast from "int" to "float" (32) : error C1115: unable to find compatible overloaded function "textureSize2D" (32) : error C1060: incompatible types in initialization (32) : error C1115: unable to find compatible overloaded function "textureSize2D" (33) : error C1115: unable to find compatible overloaded function "textureSize2D" (33) : error C1060: incompatible types in initialization (33) : error C1115: unable to find compatible overloaded function "textureSize2D" (37) : warning C7011: implicit cast from "int" to "float" (38) : error C1115: unable to find compatible overloaded function "textureSize2D" (33) : error C1060: incompatible types in initialization (44) : warning C7532: global function exp requires "#version 110" before use before Font::Glyph::subload(): detected OpenGL error 'invalid operation
_______________________________________________ osg-users mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

