wanadev / gltf-bounding-box

Computes the global bounding box of a gltf model
Other
20 stars 7 forks source link

Transformations are not applied if they are not in the matrix field #12

Open aronfiechter opened 5 years ago

aronfiechter commented 5 years ago

If a gltf file contains transformations in the fields scaling, rotation, and translation, these are not considered in the computation.

This happens because in the function getParentNodesMatrices, only the field matrix is checked. However, the GLTF specifications says that also three other fields are present (for T, R, and S), which can contain the transformations separately.