marialarsson / tsugite

This is the repository of a Tsugite. It is a research prototype of an interactive software that supports the design and fabrication of wood joints.
http://www.ma-la.com/tsugite.html
Other
423 stars 78 forks source link

Error when attempting to run #34

Open ayushpatel4 opened 1 year ago

ayushpatel4 commented 1 year ago

When I attempt to run the software I get this error. Traceback (most recent call last): File "Tsugite_app.py", line 74, in initializeGL File "Show.py", line 12, in _init_ File "Show.py", line 53, in create_color_shaders File "OpenGL\GL\shaders.py", line 235, in compileShader OpenGL.GL.shaders.ShaderCompilationError: ('Shader compile failure (0): b"ERROR: 0:4: \'#extension\' : \'GL_ARB_explicit_uniform_location\' is not supported\\nERROR: 0:8: \'location layout qualifier\' : not supported \\nERROR: 0:9: \'location layout qualifier\' : not supported \\nERROR: 0:10: \'location layout qualifier\' : not supported \\nERROR: 0:15: \'transform\' : undeclared identifier \\nERROR: 0:15: \'translate\' : undeclared identifier \\nERROR: 0:15: \'position\' : undeclared identifier \\nERROR: 0:15: \'constructor\' : not enough data provided for construction \\nERROR: 0:16: \'newColor\' : undeclared identifier \\nERROR: 0:16: \'myColor\' : undeclared identifier \\nERROR: 0:17: \'outTexCoords\' : undeclared identifier \\nERROR: 0:17: \'inTexCoords\' : undeclared identifier \\n\\n"', [b'\n #version 330\n #extension GL_ARB_explicit_attrib_location : require\n #extension GL_ARB_explicit_uniform_location : require\n layout(location = 0) in vec3 position;\n layout(location = 1) in vec3 color;\n layout(location = 2) in vec2 inTexCoords;\n layout(location = 3) uniform mat4 transform;\n layout(location = 4) uniform mat4 translate;\n layout(location = 5) uniform vec3 myColor;\n out vec3 newColor;\n out vec2 outTexCoords;\n void main()\n {\n gl_Position = transform* translate* vec4(position, 1.0f);\n newColor = myColor;\n outTexCoords = inTexCoords;\n }\n '], GL_VERTEX_SHADER)