mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
DEBUGGERY
This commit is contained in:
parent
19ea7c8e50
commit
87213f1591
3 changed files with 23 additions and 1 deletions
|
@ -17,6 +17,7 @@
|
|||
#include <cassert>
|
||||
#include <cstddef>
|
||||
#include <variant>
|
||||
#include <iostream>
|
||||
#include <vector>
|
||||
#include <cassert>
|
||||
|
||||
|
@ -467,6 +468,7 @@ SkinnedMesh *SkinnedMeshBuilder::finalize()
|
|||
else
|
||||
matrices.push_back(std::get<core::Transform>(joint->transform).buildMatrix());
|
||||
}
|
||||
auto local_matrices = matrices;
|
||||
calculateGlobalMatrices(matrices);
|
||||
|
||||
|
||||
|
@ -481,6 +483,10 @@ SkinnedMesh *SkinnedMeshBuilder::finalize()
|
|||
SSkinMeshBuffer *Buffer = (*SkinningBuffers)[attachedMeshIdx];
|
||||
Buffer->Transformation = matrices[i];
|
||||
}
|
||||
std::cout << "Joint Name: " << joint->Name.value_or("unnamed") << std::endl;
|
||||
std::cout << "Local: " << local_matrices[i] << std::endl;
|
||||
std::cout << "Global: " << matrices[i] << std::endl;
|
||||
std::cout << "Global Inverse: " << joint->GlobalInversedMatrix.value() << std::endl;
|
||||
}
|
||||
|
||||
recalculateBaseBoundingBoxes();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue