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
If we have a model with objects that are scaled <= 0.0001 on an axis, that axis' localScale value gets set to 100 when the model is imported into PlayCanvas.
In our case we have Dummy objects in 3ds Max, which when scaled to 0.01 (3ds max units) or lower, gets the incorrect localScale value. The source FBX has the correct scale. It's the import and GLB conversion that sets the incorrect value.
We have a test project, consisting of a GLB containing 3 Dummy objects with scale 0.02, 0.01, and 0.005 on the Z axis (3ds max units).
If we log the localScale of the 3 graphNodes in PlayCanvas, we get these results:
As you can see, the two smallest dummies get reset, and not even to 1.0 as you might guess, but to 100.0. This isn't limited to dummy objects either - objects with geometry behave this way too.
Expected result
Small scale values should be retained from the source model
Description
If we have a model with objects that are scaled <= 0.0001 on an axis, that axis'
localScale
value gets set to 100 when the model is imported into PlayCanvas.In our case we have Dummy objects in 3ds Max, which when scaled to 0.01 (3ds max units) or lower, gets the incorrect
localScale
value. The source FBX has the correct scale. It's the import and GLB conversion that sets the incorrect value.We have a test project, consisting of a GLB containing 3 Dummy objects with scale 0.02, 0.01, and 0.005 on the Z axis (3ds max units).
If we log the
localScale
of the 3 graphNodes in PlayCanvas, we get these results:As you can see, the two smallest dummies get reset, and not even to 1.0 as you might guess, but to 100.0. This isn't limited to dummy objects either - objects with geometry behave this way too.
Expected result
Small scale values should be retained from the source model
Test project
https://playcanvas.com/editor/scene/2160600
The text was updated successfully, but these errors were encountered: