makehumancommunity / makehuman

This is the main repository for the MakeHuman application as such.
http://www.makehumancommunity.org
Other
1.22k stars 250 forks source link

After playing with shader, main view rendering got broken #34

Open Fak3 opened 5 years ago

Fak3 commented 5 years ago

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"

joepal1976 commented 5 years ago

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

Fak3 commented 5 years ago

This is master branch of this repo.

Aranuvir commented 5 years ago

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