Hi.
I get the following errors when running my OSG app on OS X which runs
perfectly fine on Linux:

FRAGMENT glCompileShader "" FAILED
FRAGMENT Shader "" infolog:
ERROR: 0:67: Incompatible types (vec4 and float) in assignment (and no
available implicit conversion
)

glLinkProgram "" FAILED
Program "" infolog:
ERROR: One or more attached shaders not successfully compiled

VERTEX glCompileShader "pass1VS" FAILED
VERTEX Shader "pass1VS" infolog:
ERROR: 0:24: GLSL 110 does not allow sub- or super-matrix constructors
ERROR: 0:27: Incompatible types (vec3 and vec4) in assignment (and no
available implicit conversion)
ERROR: 0:29: Use of undeclared identifier 'modelMatrix3x3'
ERROR: 0:31: Use of undeclared identifier 'modelMatrix3x3'

glLinkProgram "pass1" FAILED
Program "pass1" infolog:
ERROR: One or more attached shaders not successfully compiled

FRAGMENT glCompileShader "pass2FS" FAILED
FRAGMENT Shader "pass2FS" infolog:
ERROR: 0:24: '/' does not operate on 'vec3' and 'int'
ERROR: 0:49: '==' does not operate on 'float' and 'int'

glLinkProgram "pass2" FAILED
Program "pass2" infolog:
ERROR: One or more attached shaders not successfully compiled

I have the following info from osg::GL2Extensions:
gl version: 2.1 NVIDIA-8.16.74 310.40.00.10f02
vendor: NVIDIA Corporation
renderer: NVIDIA GeForce GTX 560 OpenGL Engine
glsl version: 1.20

pass1VS: http://goo.gl/sT7m7n
pass2FS: http://goo.gl/9qX1H1

I tried to update shaders to fix those errors, and I got almost correct
results (normal mapping is doesn't work somehow).
Why does OSG try GLSL 110 in the first place? Do I need to request some
other GL version to fix it? How do I do it? What special steps do I need to
make OSG run on OS X?
Thanks.
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to