mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-05-29 13:19:55 +02:00
initial information needed for joint shape info
This commit is contained in:
parent
9261df5c24
commit
0a3a6c52f9
1 changed files with 8 additions and 0 deletions
|
@ -874,6 +874,7 @@ bool GLTFSerializer::buildGeometry(HFMModel& hfmModel, const hifi::VariantHash&
|
||||||
joint.isSkeletonJoint = false;
|
joint.isSkeletonJoint = false;
|
||||||
hfmModel.joints.push_back(joint);
|
hfmModel.joints.push_back(joint);
|
||||||
}
|
}
|
||||||
|
hfmModel.shapeVertices.resize(hfmModel.joints.size());
|
||||||
|
|
||||||
|
|
||||||
// Build skeleton
|
// Build skeleton
|
||||||
|
@ -1243,6 +1244,13 @@ bool GLTFSerializer::buildGeometry(HFMModel& hfmModel, const hifi::VariantHash&
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for (int clusterIndex = 0; clusterIndex < mesh.clusters.size() - 1; clusterIndex++) {
|
||||||
|
ShapeVertices& points = hfmModel.shapeVertices.at(clusterIndex);
|
||||||
|
for (glm::vec3 vertex : mesh.vertices) {
|
||||||
|
points.push_back(vertex);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
mesh.meshExtents.reset();
|
mesh.meshExtents.reset();
|
||||||
foreach(const glm::vec3& vertex, mesh.vertices) {
|
foreach(const glm::vec3& vertex, mesh.vertices) {
|
||||||
mesh.meshExtents.addPoint(vertex);
|
mesh.meshExtents.addPoint(vertex);
|
||||||
|
|
Loading…
Reference in a new issue