2020/7/30
修改3_libraries_pose.py 中onHumanChanged函数,屏蔽其中的self.autoScaleAnim(anim),避免在只更新face pose的时候,出现float(bone.length) / self.bvh_bone_length 中bvh_bone_length 为None的问题。 效果:不再出现子线程socket链接的时候,窗口异常闪退的问题
2020/9/22
打包makehuman,参考方法:
https://www.programmersought.com/article/29031562209/
2020/9/23
打包makehuman 最终出现问题:No module named OpenGL.WGL
对于无法加载WGL的猜测有:
package 操作之后能够正常使用OpenGL,但是用不了WGL,且WGL是在Windows上对于OpenGL的扩展,package过程没有包含WGL,对WGL没有有效的支持。
OpenGL 使用glut的方法:https://blog.csdn.net/ivan_ljf/article/details/8726672
有些包比如OpenGL. WGL 没打包之前能用,但是打包之后:no module name OpenGL.WGL 需要在打包的时候hidden import一下
pyinstaller makehuman.py -p apps;core;lib --hidden-import OpenGL.WGL
打开要隐藏cmd ,只需要加 -w即可
pyinstaller makehuman.py -w -p apps;core;lib --hidden-import OpenGL.WGL
2020/9/24
渲染的图像固定大小的方法:
# Adapt camera projection matrix to framebuffer size
oldWidth = G.windowWidth
oldHeight = G.windowHeight
G.windowWidth = width
G.windowHeight = height
GL.glPushAttrib(GL.GL_VIEWPORT_BIT)
GL.glViewport(0, 0, width, height)
# Restore viewport dimensions to those of the window
G.windowWidth = oldWidth
G.windowHeight = oldHeight
# glPushAttrib(GL_VIEWPORT_BIT)
GL.glPopAttrib()
GL.glViewport(0, 0, oldWidth, oldHeight)
打包添加多个hidden import的方法:
pyinstaller makehuman.py -w -p apps;core;lib --hidden-import OpenGL.WGL --hidden-import cv2
2020/10/7
1.隐藏 mainwind
self.mainwin.hide()
2.修改相机参数
1)远近平面
2)变焦参数,上下平移参数(translation
3)设置默认的viewpoint(resizeGL()
2020/10/31
1.修改3_libraries_teeth.py,init 设置默认的牙齿
2.修改3_libraries_tongue.py,init 设置默认的舌头
![](https://img.haomeiwen.com/i14720645/a6bff4515a8a0d13.png)
2020/11/03
1.在Linux下打包makehuman,需要注意的是-p后面的分隔符,Windows使用分号,Linux使用冒号
2.复制多个文件夹
cp -r apps dist/makehuman;cp -r icons dist/makehuman;cp -r mylib dist/makehuman;cp -r core dist/makehuman;cp -r lib dist/makehuman;cp -r plugins dist/makehuman;cp -r licenses dist/makehuman;cp -r data dist/makehuman;cp -r shared dist/makehuman;cp -r testsuite dist/makehuman
2020/11/06
使用QT 的信号和槽以及QThread 实现子线程接收参数数据,主线程执行渲染的目标,避免了需要在子线程设置OpenGL的context,简化的实现
网友评论