bindPose(绑定姿势) 理解
2016-07-15 19:21
323 查看
1.首先得多谢一吧主提供了这个资源(http://forum.unity3d.com/threads/some-explanations-on-bindposes.86185/),省去了我大麻烦
2.该资源的代码最开始的注释部分:
//The Bind Pose Matrices allow a raw vertex of the mesh (in local coordinates) to be transformed into world-space
// and then to each bone's local coordinate space, after which each bone's animation can be applied to the vertex in question
// (under the influence of the weighting value). The mesh's bind pose takes the vertex from local space to world-space,
// and then each bone's inverse bind pose takes the mesh vertex from world-space to the local space of that bone.
// Once in the bone's local space, the bone's current animated transformation matrix is used to transform (deform)
// the vertex's location. After all the bone influences have been taken into account, the vertex ends up in world-space
// in its final deformed location. In other words, these bind pose matrices relate the location of a vertex in its local mesh space
// to the same location of the vertex relative to each bones' local coordinate systems.
// The mesh's Bind Pose Matrix takes its vertices into world-space, to the location at the time of binding,
// and each bones' Bind Pose Matrix takes the bones from local space to world-space at the time of binding.
2.资源中的代码最开始的注释部分解释的很清楚:
(1)mesh的bindPose是将mesh的Vertex转换到worldSpace,也就是模型空间转到世界空间
(2)bone的bindPose是将bone的Vertex转换到worldSpace,也就是bone空间转到世界空间
不过我们通常用的是bone的bindPose的逆矩阵
2.该资源的代码最开始的注释部分:
//The Bind Pose Matrices allow a raw vertex of the mesh (in local coordinates) to be transformed into world-space
// and then to each bone's local coordinate space, after which each bone's animation can be applied to the vertex in question
// (under the influence of the weighting value). The mesh's bind pose takes the vertex from local space to world-space,
// and then each bone's inverse bind pose takes the mesh vertex from world-space to the local space of that bone.
// Once in the bone's local space, the bone's current animated transformation matrix is used to transform (deform)
// the vertex's location. After all the bone influences have been taken into account, the vertex ends up in world-space
// in its final deformed location. In other words, these bind pose matrices relate the location of a vertex in its local mesh space
// to the same location of the vertex relative to each bones' local coordinate systems.
// The mesh's Bind Pose Matrix takes its vertices into world-space, to the location at the time of binding,
// and each bones' Bind Pose Matrix takes the bones from local space to world-space at the time of binding.
2.资源中的代码最开始的注释部分解释的很清楚:
(1)mesh的bindPose是将mesh的Vertex转换到worldSpace,也就是模型空间转到世界空间
(2)bone的bindPose是将bone的Vertex转换到worldSpace,也就是bone空间转到世界空间
不过我们通常用的是bone的bindPose的逆矩阵
相关文章推荐
- Java instanceof关键字详解
- JS简介
- canvas(画布)
- 共享
- XSS漏洞分析
- HDU5645(水)
- 高斯混合模型----分类问题
- 在Android应用中使用自定义证书的HTTPS连接(下)
- 安卓手机屏幕投射到电脑以及一台电脑控制多台手机技术原理浅析
- 用于基于 RPM 的 Linux 平台的 Java
- 一个很简单的输出从1到n个9
- Android 状态栏的控制
- HDU1013 Digital Roots(解法二)
- An internal error occurred during: "SVN 检出". java.lang.ArrayIndexOutOfBoundsException
- BZOJ1088 [SCOI2005]扫雷Mine
- 【iOS】Xcode 插件安装后无效
- 回家_纪中1445_bfs+二分
- C语言零散知识学习
- 区块链在中国(2):PBFT算法
- 【WCF】终结点的监听地址