Giter Club home page Giter Club logo

Comments (2)

 avatar commented on September 27, 2024

201569243977_.pic.jpg

from video2bvh.

KevinLTT avatar KevinLTT commented on September 27, 2024

我这边打不开你给的图片链接。关于retarget有以下两点要注意的地方。

  1. 用makehuman生成人物模型的时候要选择CMU骨架.
  2. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.