This project is a converter that takes a scene as a JSON file and converts it between Three.js and Babylon.js, or vice versa.
Disclaimer: this is an experimental project containing a limited functional coverage and / or bugs.
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.
You need to have Node.js and npm installed on your machine.
-
Clone this repository
-
Install the dependencies
yarn install
- Start the project
yarn run start
The project is not designed to be generic for all scenes and currently supports the following components:
- Box
- Hemispheric Light
- Camera
Conversion from Babylon.js to Three.js can handle different types of meshes. However, conversion from Three.js to Babylon.js supports only one type of mesh: Box.
Please use the JSON files provided in the public folder. You can modify the scene to be transformed by changing the path to the JSON file in the App.tsx file.
- Ibrahim Talbi @ibrahim
- Jonathan Rivalan @JonRiv
- Rnd Team @ SMILE
Licensed under the Apache 2.0 license