I want to import obj meshes in my scene which are downloaded from internet platforms such as TurboSquid or Sketchfab.
When i Import these meshes into my scene, i never know the initial scaling and i’m not able to resize them in an appropriate scaling without using gizmos.
Size units in Babylon are relative; one never knows initial Sketchfab model scaling, which may differ a lot from your specific application needs.
I believe that for scaling meshes you may try to use something like (change ‘2’ to desired scale for all 3 axis) mesh.scaling.scaleInPlace(2);
or scene.getMeshByName("Mesh_Name").scaling.scaleInPlace(2);
and use it inside the callback function for mesh importing.
Example - line 152, https://www.babylonjs-playground.com/#E8C51D#36
but the thing with Sketchfab and other similar models is that one never knows where the transform origin will be situated and is there any need to apply proper rotation.