Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
julapy opened this issue Jan 29, 2025 · 0 comments

Comments

@julapy
Copy link

julapy commented Jan 29, 2025

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant