本文主要是介绍bvh可视化,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
目录
byh导入
bvh可视化:
读写bvh文件:
byh导入
https://github.com/Bforartists/Bforartists/blob/3d94e92f18be68df89386106dabe761f4f12b336/scripts/addons/io_anim_bvh/import_bvh.py
pip install bpy
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 dataroot.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)
这篇关于bvh可视化的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!