mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-04 21:33:09 +02:00
added debug print to fbx reader to see if the fst is being read correctly
This commit is contained in:
parent
dce040978c
commit
fd365b5509
2 changed files with 5 additions and 1 deletions
|
@ -27,7 +27,7 @@ AnimSkeleton::AnimSkeleton(const HFMModel& hfmModel) {
|
|||
}
|
||||
|
||||
glm::quat offset1(0.5f, 0.5f, 0.5f, -0.5f);
|
||||
glm::quat offset2(0.7071f, 0.0f, 0.7071f, 0.0f);
|
||||
glm::quat offset2(0.7071f, 0.0f, -0.7071f, 0.0f);
|
||||
|
||||
buildSkeletonFromJoints(joints, hfmModel.jointRotationOffsets);
|
||||
// add offsets for spine2 and the neck
|
||||
|
|
|
@ -632,10 +632,14 @@ QMap<QString, glm::quat> getJointRotationOffsets(const QVariantHash& mapping) {
|
|||
if (!isNaN(quatX) && !isNaN(quatY) && !isNaN(quatZ) && !isNaN(quatW)) {
|
||||
glm::quat rotationOffset = glm::quat(quatW, quatX, quatY, quatZ);
|
||||
jointRotationOffsets.insert(jointName, rotationOffset);
|
||||
|
||||
}
|
||||
}
|
||||
qCDebug(modelformat) << "found an offset in fst";
|
||||
}
|
||||
qCDebug(modelformat) << "found an offset in fst 2";
|
||||
}
|
||||
qCDebug(modelformat) << "found an offset in fst 3";
|
||||
return jointRotationOffsets;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue