Import .glb file using ImportMeshAsync and the imported object has undergone mirror flipping

When I was using vuejs, I installed babylonjs and the babylonjs-loaders library. Then, I simply wrote a method to drag and drop the .glb file and import the object into the current scene through ImportMeshAsync method. However, it seems that the imported object has undergone mirror flipping, but my testing on the sandbox on the official website is normal. Is it due to the npm package?

The normal one:

The wrong one in this demo:

Here is the demo file containing .glb file:

demo.zip (1.3 MB)

Hello and welcome!

It’s all just about where is your camera positioned and from which direction does it look at your glb

scene.createDefaultCamera() in your code creates a FreeCamera. The Sandbox creates an ArcRotateCamera and positions and rotates it differently.

Here is a PG which uses the same view as the Sandbox:

Here is a working PG using your setup:

right-handed system:

3 Likes