makehuman icon indicating copy to clipboard operation
makehuman copied to clipboard

After playing with shader, main view rendering got broken

Open Fak3 opened this issue 6 years ago • 3 comments

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"

Fak3 avatar Jan 26 '19 16:01 Fak3

Is this alpha 2 or the special test build to attempt solving GL problems?

joepal1976 avatar Jan 31 '19 10:01 joepal1976

This is master branch of this repo.

Fak3 avatar Feb 10 '19 15:02 Fak3

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...

Aranuvir avatar Feb 13 '19 18:02 Aranuvir