bvh可视化

发布时间:2024年01月17日

目录

byh导入

bvh可视化,demo可以,换bvh,就播放失败

bvh可视化:

读写bvh文件:


byh导入

https://github.com/Bforartists/Bforartists/blob/3d94e92f18be68df89386106dabe761f4f12b336/scripts/addons/io_anim_bvh/import_bvh.py

pip install bpy

bvh可视化,demo可以,换bvh,就播放失败

https://github.com/Hibiki33/BVHPlayer

bvh可视化:

好像不是17个点

https://github.com/ColbyZhuang/BVH_reader/tree/master

pip install?pyopengl

读写bvh文件:

pip install PyGLM

pip install spatial-transform

https://github.com/Wasserwecken/bvhio

可以获取帧长度,?

    root = bvhio.readAsHierarchy(r'D:\project\kunkun_clip_h36m.bvh')
    # root.printTree()

    # load rest pose and print data
    root.loadRestPose(recursive=True)
    print('\nRest pose position and Y-direction of each joint in world space ')

    prediction3dpoint=[]

    data_len= len(root.Keyframes)
    for joint, index, depth in root.layout():
        print(f'{joint.PositionWorld} {joint.UpWorld} {joint.Name}')
        prediction3dpoint.append([list(joint.PositionWorld)])
    # viz_output='out.bvh'
    # prediction3dpoint=np.asarray(prediction3dpoint)
    # write_standard_bvh(viz_output, prediction3dpoint)

文章来源:https://blog.csdn.net/jacke121/article/details/135650693
本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。