Skip to content

V2和V2CPP的脸部渲染框线问题 #138

Description

@FT4827695

绘制出的人物面部的眼睛和嘴巴会有细框线,特别是在眨眼和闭眼时更加明显,用的GLFW。

Image

绘制主窗口模型

self.model.Update()
gl.glPushAttrib(gl.GL_CURRENT_BIT | gl.GL_ENABLE_BIT | gl.GL_POLYGON_BIT | gl.GL_COLOR_BUFFER_BIT)
gl.glUseProgram(0)
gl.glDisable(gl.GL_DEPTH_TEST)
gl.glDisable(gl.GL_CULL_FACE)
gl.glEnable(gl.GL_BLEND)
gl.glBlendFuncSeparate(gl.GL_ONE, gl.GL_ONE_MINUS_SRC_ALPHA, gl.GL_ONE, gl.GL_ONE_MINUS_SRC_ALPHA)
self.model.Draw()
gl.glPopAttrib()

win_w, win_h = glfw.get_window_size(self.window)
self.bubble.draw(win_w, win_h)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions