You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Compare "Milk Truck" ( a 1.0 model) and "Draco Compressed Model" (a 2.0 model) in the 3D Models sandcastle. 1.47 vs 1.46
In 1.47 the pivot point is slightly off.
Removing these lines fixes it, but I haven't looked around enough to know why. Similarly placing them above the other axis conversions works. @emackey would you be able to check this out?
if (model._forwardAxis === Axis.Z) {
// glTF 2.0 has a Z-forward convention that must be adapted here to X-forward.
BoundingSphere.transformWithoutScale(boundingSphere, Axis.Z_UP_TO_X_UP, boundingSphere);
}
This sample file can be used for testing: OffsetCube.zip
It is a cube that is offset from the origin by different amounts on all 3 axes. It won't be shown in the center of the view if you just comment out the Z-forward transform. The transform has to be applied in the correct order to center the cube properly.
Compare "Milk Truck" ( a 1.0 model) and "Draco Compressed Model" (a 2.0 model) in the 3D Models sandcastle. 1.47 vs 1.46
In 1.47 the pivot point is slightly off.
Removing these lines fixes it, but I haven't looked around enough to know why. Similarly placing them above the other axis conversions works. @emackey would you be able to check this out?
Noticed in #6559
The text was updated successfully, but these errors were encountered: