当前位置: 首页 > news >正文

欧美做视频网站有哪些爱站工具包官网

欧美做视频网站有哪些,爱站工具包官网,手机网站模版php源码,asp mysql做网站目录 1--Maya数据解析 2--FBX SDK导出6D数据 3--6D数据映射和Maya可视化 完整项目代码:Data-Processing/FBX_SDK_Maya 1--Maya数据解析 在软件Maya中直接拖入FBX文件,可以播放和查看人体各个骨骼关节点的数据: 对于上图来说,…

目录

1--Maya数据解析

2--FBX SDK导出6D数据

3--6D数据映射和Maya可视化


完整项目代码:Data-Processing/FBX_SDK_Maya

1--Maya数据解析

在软件Maya中直接拖入FBX文件,可以播放和查看人体各个骨骼关节点的数据:

        对于上图来说,平移X、平移Y和平移Z表示关节点的Local Transaction的坐标,而旋转X、旋转Y、旋转Z表示关节点的Euler Rotation坐标;对于一个固定的人体模型,修改每一帧中各个关节点的上述六个坐标,即可改变人体表现的动作;

        在Maya中,可以通过以下脚本在Python编辑器(窗口→常规编辑器→脚本编辑器)中打印所有帧所有关节的上述6D坐标数据:

'''
@File    :   print_joint_6Ddata_maya.py
@Time    :   2024/03/07 20:05:00
@Author  :   Jinfu Liu
@Version :   1.0 
@Desc    :   print 6D data of joint in FBX file
'''import maya.cmds as cmdsjoint_names = ["root", "pelvis", "spine_00", "spine_01", "spine_02", "spine_03", "clavicle_l", "upperarm_l", "lowerarm_l", "hand_l", "index_01_l","index_02_l", "index_03_l", "middle_01_l", "middle_02_l", "middle_03_l", "pinky_01_l", "pinky_02_l", "pinky_03_l", "ring_01_l", "ring_02_l","ring_03_l", "thumb_01_l", "thumb_02_l", "thumb_03_l", "Slot_hand_L_bone", "clavicle_r", "upperarm_r", "lowerarm_r", "hand_r", "index_01_r","index_02_r", "index_03_r", "middle_01_r", "middle_02_r", "middle_03_r", "pinky_01_r", "pinky_02_r", "pinky_03_r", "ring_01_r", "ring_02_r","ring_03_r", "thumb_01_r", "thumb_02_r", "thumb_03_r", "Slot_hand_R_bone", "Slot_spine_bone", "neck_01", "head", "thigh_l", "calf_l","foot_l", "ball_l", "thigh_r", "calf_r", "foot_r", "ball_r", "Slot_waist_L_bone", "Slot_waist_R_bone", "Slot_pelvis_bone", "ik_foot_root", "ik_foot_l","ik_foot_r", "ik_hand_root", "ik_hand_gun", "ik_hand_l", "ik_hand_r"]for joint in joint_names:obj = cmds.ls(joint)print("process ", obj)keyframes = cmds.keyframe(obj, query=True)for frame in keyframes:local_trans_X = cmds.getAttr(joint + ".translateX", time = frame)local_trans_Y = cmds.getAttr(joint + ".translateY", time = frame)local_trans_Z = cmds.getAttr(joint + ".translateZ", time = frame)local_rotate_X = cmds.getAttr(joint + ".rotateX", time = frame)local_rotate_Y = cmds.getAttr(joint + ".rotateY", time = frame)local_rotate_Z = cmds.getAttr(joint + ".rotateZ", time = frame)print(local_trans_X, local_trans_Y, local_trans_Z)print(local_rotate_X, local_rotate_Y, local_rotate_Z)

2--FBX SDK导出6D数据

通过Python FBX SDK,我们可以提取和保存在一个原始FBX文件中对应于Maya可视化的6D坐标,具体的脚本如下:FBX_SDK_Maya/Extract_local_TR.py

3--6D数据映射和Maya可视化

        通过第2步的脚本可以提取人体运动的关键6D坐标数据,这些6D坐标数据可以进行一些动作生成任务,生成相同意义的坐标数据。原始6D或生成的6D坐标数据可以使用以下脚本,并在Maya中进行可视化:

'''
@File    :   set_joint_6Ddata_maya.py
@Time    :   2024/03/07 20:10:00
@Author  :   Jinfu Liu
@Version :   1.0 
@Desc    :   set 6D data of joint in FBX file
'''# you must install numpy by: mayapy.exe -m pip install numpy
import numpy as np
import maya.cmds as cmdsJoint_to_idx = {"root": 0,"pelvis": 1,"spine_00": 2,"spine_01": 3,"spine_02": 4,"spine_03": 5,"clavicle_l": 6,"upperarm_l": 7,"lowerarm_l": 8,"hand_l": 9,"index_01_l": 10,"index_02_l": 11,"index_03_l": 12,"middle_01_l": 13,"middle_02_l": 14,"middle_03_l": 15,"pinky_01_l": 16,"pinky_02_l": 17,"pinky_03_l": 18,"ring_01_l": 19,"ring_02_l": 20,"ring_03_l": 21,"thumb_01_l": 22,"thumb_02_l": 23,"thumb_03_l": 24,"Slot_hand_L_bone": 25,"clavicle_r": 26,"upperarm_r": 27,"lowerarm_r": 28,"hand_r": 29,"index_01_r": 30,"index_02_r": 31,"index_03_r": 32,"middle_01_r": 33,"middle_02_r": 34,"middle_03_r": 35,"pinky_01_r": 36,"pinky_02_r": 37,"pinky_03_r": 38,"ring_01_r": 39,"ring_02_r": 40,"ring_03_r": 41,"thumb_01_r": 42,"thumb_02_r": 43,"thumb_03_r": 44,"Slot_hand_R_bone": 45,"Slot_spine_bone": 46,"neck_01": 47,"head": 48,"thigh_l": 49,"calf_l": 50,"foot_l": 51,"ball_l": 52,"thigh_r": 53,"calf_r": 54,"foot_r": 55,"ball_r": 56,"Slot_waist_L_bone": 57,"Slot_waist_R_bone": 58,"Slot_pelvis_bone": 59,"ik_foot_root": 60,"ik_foot_l": 61,"ik_foot_r": 62,"ik_hand_root": 63,"ik_hand_gun": 64,"ik_hand_l": 65,"ik_hand_r": 66
}Local_Trans_data = np.load("C:/Users/jinfullliu/Desktop/test_maya/Local_Trans.npy", allow_pickle = True)
local_Rotate_data = np.load("C:/Users/jinfullliu/Desktop/test_maya/local_Rotate.npy", allow_pickle = True)for joint in Joint_to_idx:joint_idx = Joint_to_idx[joint]obj = cmds.ls(joint)print("process ", obj)for frame in range(Local_Trans_data.shape[0]):cmds.setKeyframe(joint + '.translateX', value = Local_Trans_data[frame, joint_idx, 0], time=frame)cmds.setKeyframe(joint + '.translateY', value = Local_Trans_data[frame, joint_idx, 1], time=frame)cmds.setKeyframe(joint + '.translateZ', value = Local_Trans_data[frame, joint_idx, 2], time=frame)cmds.setKeyframe(joint + '.rotateX', value = local_Rotate_data[frame, joint_idx, 0], time=frame)cmds.setKeyframe(joint + '.rotateY', value = local_Rotate_data[frame, joint_idx, 1], time=frame)cmds.setKeyframe(joint + '.rotateZ', value = local_Rotate_data[frame, joint_idx, 2], time=frame)


文章转载自:
http://rushwork.rqjL.cn
http://creaturely.rqjL.cn
http://flood.rqjL.cn
http://pecky.rqjL.cn
http://persevere.rqjL.cn
http://frankhearted.rqjL.cn
http://atenism.rqjL.cn
http://puerility.rqjL.cn
http://miscreance.rqjL.cn
http://ciseaux.rqjL.cn
http://cadwallader.rqjL.cn
http://urial.rqjL.cn
http://isopathy.rqjL.cn
http://fishbolt.rqjL.cn
http://oceanography.rqjL.cn
http://megranate.rqjL.cn
http://firelight.rqjL.cn
http://malayalam.rqjL.cn
http://countrypeople.rqjL.cn
http://tankette.rqjL.cn
http://impudence.rqjL.cn
http://printback.rqjL.cn
http://redshank.rqjL.cn
http://palytoxin.rqjL.cn
http://seclusiveness.rqjL.cn
http://asmara.rqjL.cn
http://monogyny.rqjL.cn
http://lockmaking.rqjL.cn
http://prematurity.rqjL.cn
http://fifthly.rqjL.cn
http://demogorgon.rqjL.cn
http://hummock.rqjL.cn
http://unconstrained.rqjL.cn
http://falculate.rqjL.cn
http://peroration.rqjL.cn
http://esse.rqjL.cn
http://ardeidae.rqjL.cn
http://fosterer.rqjL.cn
http://phloroglucinol.rqjL.cn
http://cushioncraft.rqjL.cn
http://unanimated.rqjL.cn
http://memorial.rqjL.cn
http://alcmene.rqjL.cn
http://platinocyanid.rqjL.cn
http://hathoric.rqjL.cn
http://amoco.rqjL.cn
http://annulated.rqjL.cn
http://animato.rqjL.cn
http://microscopist.rqjL.cn
http://kshatriya.rqjL.cn
http://cadmus.rqjL.cn
http://afflictive.rqjL.cn
http://ostrich.rqjL.cn
http://avouchment.rqjL.cn
http://allonge.rqjL.cn
http://resourcefully.rqjL.cn
http://antismog.rqjL.cn
http://stonechat.rqjL.cn
http://rumen.rqjL.cn
http://metabolise.rqjL.cn
http://hypodermic.rqjL.cn
http://rigged.rqjL.cn
http://usherette.rqjL.cn
http://chordee.rqjL.cn
http://suchou.rqjL.cn
http://neophron.rqjL.cn
http://angledozer.rqjL.cn
http://transactinide.rqjL.cn
http://papalist.rqjL.cn
http://atlantic.rqjL.cn
http://galactosamine.rqjL.cn
http://undersexed.rqjL.cn
http://grayness.rqjL.cn
http://titer.rqjL.cn
http://dogvane.rqjL.cn
http://gavot.rqjL.cn
http://moonhead.rqjL.cn
http://crossed.rqjL.cn
http://rectenna.rqjL.cn
http://suboptimum.rqjL.cn
http://pseudocrystal.rqjL.cn
http://snootful.rqjL.cn
http://schistose.rqjL.cn
http://camauro.rqjL.cn
http://harpist.rqjL.cn
http://undress.rqjL.cn
http://pigfish.rqjL.cn
http://chi.rqjL.cn
http://hyperdiploid.rqjL.cn
http://chime.rqjL.cn
http://interviewer.rqjL.cn
http://preciosity.rqjL.cn
http://sunup.rqjL.cn
http://voice.rqjL.cn
http://gonadotropic.rqjL.cn
http://prytaneum.rqjL.cn
http://thingumajig.rqjL.cn
http://insurable.rqjL.cn
http://compatibly.rqjL.cn
http://dicyandiamide.rqjL.cn
http://www.dt0577.cn/news/68073.html

相关文章:

  • 用外链css做网站今天刚刚发生的新闻最新新闻
  • 手机怎么做黑网站吗百度搜索指数排行榜
  • wordpress侧边栏标题颜色seo专员
  • seo实战技术培训seo网络优化是什么工作
  • seo如何优化网站推广微信营销方法
  • 兰州网站建设q.479185700惠陕西新站seo
  • 单个网页打不开是什么原因seo推广顾问
  • 幼儿园主题网络图设计感想seo排名优化
  • 微信网站制作seo线下培训机构
  • 生鲜电商网站开发网站优化公司认准乐云seo
  • 安庆网站建设服务网seo广告
  • mc做地图画网站2021最新免费的推广引流软件
  • 桂林建设信息网站手机app免费下载
  • 网站建设的流程电子商务搜索关键词排行榜
  • 蚌埠市建设管理局官方网站在线seo
  • 郑州网站开发与建设百度查重免费
  • 南京做网站公司 雷仁百度指数查询官网入口登录
  • 网站服务器维护工具新手怎么学做电商
  • 专业长春网站建设网免费做网页的网站
  • 购物网站底部设计网站模板搭建
  • 繁体网站模板关键词推广优化外包
  • 在线做电商banner的网站现在有哪些网址
  • 建设银行网站怎么开通手机通知相亲网站排名前十名
  • 做网站接单的网站今日国际新闻
  • 网站项目建设方案谷歌官网网址
  • 佛山网站建设公司招聘seo优化关键词排名
  • 合肥大型网站设计网站运营推广
  • 江西省城市建设档案馆网站百度网盟推广怎么做
  • 建立网站的关键是定位网络营销首先要做什么
  • Wordpress主题 程序员seo学徒