A basic 3D project using Babylon.js.
- Install dependencies:
npm install- Start the development server:
npm start- Open your browser and navigate to
http://localhost:5687
- Basic 3D scene with a rotating box
- Arc-rotate camera for easy navigation
- Responsive canvas that adapts to window size
- Basic lighting setup
- Left click + drag: Rotate camera
- Right click + drag: Pan camera
- Mouse wheel: Zoom in/out
The project structure is as follows:
index.html: Main HTML file with canvas setupapp.js: Main JavaScript file containing the Babylon.js scenepackage.json: Project configuration and dependencies