web icon indicating copy to clipboard operation
web copied to clipboard

Babylon.js 7 (scene.useRightHandedSystem = true) - corrupts the camera state.

Open julapy opened this issue 1 year ago • 0 comments

In Babylon.js 7 scene.useRightHandedSystem = true - does not work. inspecting the camera.rotationQuaternion reveals NaN values. works fine if useRightHandedSystem is false.

to replicate we have been using the github sample: https://github.com/8thwall/web/blob/master/examples/babylonjs/placeground/index.js

  • index.html - update babylon version to 7+ (ie, we're using 7.45.0)
  • index.js - update BABYLON.SceneLoader.ImportMesh to BABYLON.SceneLoader.ImportMeshAsync (so it works in babylon.js 7)
  • run with useRightHandedSystem = false - works.
  • run with useRightHandedSystem = true - fails
  • inspect the camera rotationQuaternion when using right handed system

julapy avatar Jan 29 '25 09:01 julapy