Comments (2)
from video2bvh.
我这边打不开你给的图片链接。关于retarget有以下两点要注意的地方。
- 用makehuman生成人物模型的时候要选择CMU骨架.
- makewalk的作者认为大多数的bvh文件都是y轴相上的, 但是在blender中默认是z轴朝上的, 所以他在导入bvh文件时对坐标进行了一个变化, 即将假定y轴朝上的坐标转换为了z轴朝上的坐标.
如果bvh本身就是z轴朝上的话那么这个变换就会导致人物朝向的错误, 本项目的demo中生成的三维姿态即是z轴朝上的. 对于这个问题, 注释掉makehuman源码中load.py的readBvhFile(context, filepath, scn, scan)函数的相关行即可.
def readBvhFile(context, filepath, scn, scan):
props.ensureInited(context)
setCategory("Load Bvh File")
scale = scn.McpBvhScale
startFrame = scn.McpStartFrame
endFrame = scn.McpEndFrame
frameno = 1
""" Comment the following lines. """
# if scn.McpFlipYAxis:
# flipMatrix = Matrix.Rotation(math.pi, 3, 'X') * Matrix.Rotation(math.pi, 3, 'Y')
# else:
# flipMatrix = Matrix.Rotation(0, 3, 'X')
# if True or scn.McpRot90Anim:
# flipMatrix = Matrix.Rotation(math.pi/2, 3, 'X') * flipMatrix
# flipMatrix = 1
flipMatrix = Matrix.Rotation(0, 3, 'X') # add this line
if (scn.McpSubsample):
ssFactor = scn.McpSSFactor
else:
ssFactor = 1
from video2bvh.
Related Issues (20)
- 同一个npy生成两种骨骼样式的bvh
- 请问left_hand和right_hand如何表示
- what are the files that are refered in `Initialize 3D pose estimator` HOT 1
- NotImplementedError: cannot instantiate 'PosixPath' on your system HOT 8
- How does the pose2euler function work?
- RuntimeError: CUDA out of memory HOT 3
- corrputed bvh outputs HOT 1
- > @hanhailangya @KevinLTT 可以解答一下这个问题吗,非常疑惑 HOT 2
- about eulermap HOT 5
- Intuition behind directions of skeleton
- 大佬可以写个三维点转换动捕的教程?
- math3d.py : left-handed system to right-handed system HOT 1
- Is it possible to use mediapipe for converting the pose to bvh? HOT 4
- About the rotation of shoulder, arm, and hand HOT 1
- How to amend the result when correct the initial_directions? HOT 1
- BVH file not converted properly
- How to use openpose deal the data of huaman 3.6m and train the videopose3d model
- Need help, Can't get pyopenpose to work right HOT 4
- Fingers
- 3D Joints to 3DEuler
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from video2bvh.