|
1 | | -## 3d scene spanning multiple windows using three.js and localStorage |
| 1 | +# Multiple Window 3D Scene using Three.js |
2 | 2 |
|
3 | | -A simple example showing how to setup a 3d scene across windows on the same origin using three.js and localStorage. Code should be self explanatory |
| 3 | +## Introduction |
| 4 | +This project demonstrates a unique approach to creating and managing a 3D scene across multiple browser windows using Three.js and localStorage. It's designed for developers interested in advanced web graphics and window management techniques. |
4 | 5 |
|
5 | | -follow me on twitter at [@_nonfigurativ_](https://twitter.com/_nonfigurativ_) for more stuff like this |
| 6 | +## Features |
| 7 | +- 3D scene creation and rendering with Three.js. |
| 8 | +- Synchronization of 3D scenes across multiple browser windows. |
| 9 | +- Dynamic window management and state synchronization using localStorage. |
| 10 | + |
| 11 | +## Installation |
| 12 | +Clone the repository and open `index.html` in your browser to start exploring the 3D scene. |
| 13 | + |
| 14 | +``` |
| 15 | +git clone https://github.com/bgstaal/multipleWindow3dScene |
| 16 | +``` |
| 17 | +## Usage |
| 18 | +The main application logic is contained within `main.js` and `WindowManager.js`. The 3D scene is rendered in `index.html`, which serves as the entry point of the application. |
| 19 | + |
| 20 | +## Structure and Components |
| 21 | +- `index.html`: Entry point that sets up the HTML structure and includes the Three.js library and the main script. |
| 22 | +- `WindowManager.js`: Core class managing window creation, synchronization, and state management across multiple windows. |
| 23 | +- `main.js`: Contains the logic for initializing the 3D scene, handling window events, and rendering the scene. |
| 24 | +- `three.r124.min.js`: Minified version of the Three.js library used for 3D graphics rendering. |
| 25 | + |
| 26 | +## Detailed Functionality |
| 27 | +- `WindowManager.js` handles the lifecycle of multiple browser windows, including creation, synchronization, and removal. It uses localStorage to maintain state across windows. |
| 28 | +- `main.js` initializes the 3D scene using Three.js, manages the window's resize events, and updates the scene based on window interactions. |
| 29 | + |
| 30 | +## Contributing |
| 31 | +Contributions to enhance or expand the project are welcome. Feel free to fork the repository, make changes, and submit pull requests. |
| 32 | + |
| 33 | +## License |
| 34 | +This project is open-sourced under the MIT License. |
| 35 | + |
| 36 | +## Acknowledgments |
| 37 | +- The Three.js team for their comprehensive 3D library. |
| 38 | +- x.com/didntdrinkwater for this readme. |
| 39 | + |
| 40 | +## Contact |
| 41 | +For more information and updates, follow [@_nonfigurativ_](https://twitter.com/_nonfigurativ_) on Twitter. |
0 commit comments