|
group2 0.1.0
CSE 125 Group 2
|
Classes | |
| struct | JointRestPose |
| Rest-pose local transform cached during skeleton building, reused as a fallback keyframe for joints without animation channels. More... | |
Functions | |
| glm::mat4 | ozzToGlm (const ozz::math::Float4x4 &m) |
| Convert an ozz SIMD 4x4 matrix to a GLM column-major mat4. | |
| glm::mat4 | aiToGlm (const aiMatrix4x4 &m) |
| Convert an Assimp row-major 4x4 matrix to GLM column-major. | |
| bool | buildJoint (const aiNode *node, const std::unordered_set< std::string > &boneNames, ozz::animation::offline::RawSkeleton::Joint &outJoint, std::unordered_map< std::string, JointRestPose > &restPoses) |
| Recursively build a RawSkeleton joint tree from the Assimp node hierarchy. | |
| glm::mat4 anim_utils::aiToGlm | ( | const aiMatrix4x4 & | m | ) |
Convert an Assimp row-major 4x4 matrix to GLM column-major.
| m | Source assimp matrix. |
| bool anim_utils::buildJoint | ( | const aiNode * | node, |
| const std::unordered_set< std::string > & | boneNames, | ||
| ozz::animation::offline::RawSkeleton::Joint & | outJoint, | ||
| std::unordered_map< std::string, JointRestPose > & | restPoses | ||
| ) |
Recursively build a RawSkeleton joint tree from the Assimp node hierarchy.
Only includes nodes that are bones or ancestors of bones (prunes mesh nodes and other non-skeletal branches).
| node | Current Assimp node to process. |
| boneNames | Set of bone names referenced by meshes. |
| outJoint | Output joint to populate. |
| restPoses | Map to store rest-pose transforms keyed by joint name. |
| glm::mat4 anim_utils::ozzToGlm | ( | const ozz::math::Float4x4 & | m | ) |
Convert an ozz SIMD 4x4 matrix to a GLM column-major mat4.
| m | Source ozz matrix. |