After playing with shader, main view rendering got broken
mh version: git master I went to "utilities" -> "material editor" and switched few times the shader from "phong" to another one (tried few others actually) and then back to "phong". The makehuman became very slow, and after some time stopped to render anything in the main view. Every few seconds following two variants of errors appear in the log:
The shader source in /home/z/pproj/makehuman/makehuman/data/shaders/glsl/skin_vertex_shader.txt does not contain an explicit GLSL version declaration. This could cause problems with some compilers.
The shader source in /home/z/pproj/makehuman/makehuman/data/shaders/glsl/skin_fragment_shader.txt does not contain an explicit GLSL version declaration. This could cause problems with some compilers.
gl.draw
Traceback (most recent call last):
File "./lib/glmodule.py", line 1041, in draw
_draw(productionRender)
File "./lib/glmodule.py", line 1033, in _draw
drawMeshes(False, productionRender)
File "./lib/glmodule.py", line 1029, in drawMeshes
drawOrPick(pickMode, obj)
File "./lib/glmodule.py", line 672, in drawOrPick
obj.draw()
File "./lib/object3d.py", line 286, in draw
return glmodule.drawMesh(self, *args, **kwargs)
File "./lib/glmodule.py", line 533, in drawMesh
obj.shaderObj.setUniforms(obj.shaderParameters)
File "./lib/shader.py", line 478, in setUniforms
uniform.set(value)
File "./lib/shader.py", line 254, in set
glBindTexture(self.target, tex.textureId)
File "src/errorchecker.pyx", line 53, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError
OpenGL.error.GLError: GLError(
err = 1282,
description = b'invalid operation',
baseOperation = glBindTexture,
cArguments = (GL_TEXTURE_1D, 1)
)
gl.draw
Traceback (most recent call last):
File "./lib/glmodule.py", line 1041, in draw
_draw(productionRender)
File "./lib/glmodule.py", line 1033, in _draw
drawMeshes(False, productionRender)
File "./lib/glmodule.py", line 1029, in drawMeshes
drawOrPick(pickMode, obj)
File "./lib/glmodule.py", line 672, in drawOrPick
obj.draw()
File "./lib/object3d.py", line 286, in draw
return glmodule.drawMesh(self, *args, **kwargs)
File "./lib/glmodule.py", line 421, in drawMesh
glPushMatrix()
File "src/errorchecker.pyx", line 53, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError
OpenGL.error.GLError: GLError(
err = 1283,
description = b'stack overflow',
baseOperation = glPushMatrix,
cArguments = ()
)
The skin was downloaded from community, id:1125 "Light skin with natural makeup"
Is this alpha 2 or the special test build to attempt solving GL problems?
This is master branch of this repo.
It's a problem with the skin shader. I'm not sure if the glsl code for this shader is correct. Maybe we should consider to remove the skin_vertex and _fragment shder from the code...