{"id":13433339,"url":"https://github.com/bgstaal/multipleWindow3dScene","last_synced_at":"2025-03-17T12:31:37.701Z","repository":{"id":208808424,"uuid":"722534765","full_name":"bgstaal/multipleWindow3dScene","owner":"bgstaal","description":"A quick example of how one can \"synchronize\" a 3d scene across multiple windows using three.js and localStorage","archived":false,"fork":false,"pushed_at":"2023-11-29T18:41:08.000Z","size":161,"stargazers_count":16509,"open_issues_count":36,"forks_count":2556,"subscribers_count":116,"default_branch":"main","last_synced_at":"2024-10-28T16:12:00.999Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bgstaal.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2023-11-23T11:03:22.000Z","updated_at":"2024-10-28T13:38:02.000Z","dependencies_parsed_at":"2024-01-14T04:41:42.717Z","dependency_job_id":"afff5e4f-91b2-401b-874d-7c04dd25db71","html_url":"https://github.com/bgstaal/multipleWindow3dScene","commit_stats":null,"previous_names":["bgstaal/multiplewindow3dscene"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgstaal%2FmultipleWindow3dScene","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgstaal%2FmultipleWindow3dScene/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgstaal%2FmultipleWindow3dScene/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bgstaal%2FmultipleWindow3dScene/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bgstaal","download_url":"https://codeload.github.com/bgstaal/multipleWindow3dScene/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244033781,"owners_count":20386996,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-07-31T02:01:24.388Z","updated_at":"2025-03-17T12:31:37.357Z","avatar_url":"https://github.com/bgstaal.png","language":"JavaScript","readme":"# Multiple Window 3D Scene using Three.js\n\n## Introduction\nThis 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.\n\n## Features\n- 3D scene creation and rendering with Three.js.\n- Synchronization of 3D scenes across multiple browser windows.\n- Dynamic window management and state synchronization using localStorage.\n\n## Installation\nClone the repository and open `index.html` in your browser to start exploring the 3D scene.\n\n```\ngit clone https://github.com/bgstaal/multipleWindow3dScene\n```\n## Usage\nThe 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.\n\n## Structure and Components\n- `index.html`: Entry point that sets up the HTML structure and includes the Three.js library and the main script.\n- `WindowManager.js`: Core class managing window creation, synchronization, and state management across multiple windows.\n- `main.js`: Contains the logic for initializing the 3D scene, handling window events, and rendering the scene.\n- `three.r124.min.js`: Minified version of the Three.js library used for 3D graphics rendering.\n\n## Detailed Functionality\n- `WindowManager.js` handles the lifecycle of multiple browser windows, including creation, synchronization, and removal. It uses localStorage to maintain state across windows.\n- `main.js` initializes the 3D scene using Three.js, manages the window's resize events, and updates the scene based on window interactions.\n\n## Contributing\nContributions to enhance or expand the project are welcome. Feel free to fork the repository, make changes, and submit pull requests.\n\n## License\nThis project is open-sourced under the MIT License.\n\n## Acknowledgments\n- The Three.js team for their comprehensive 3D library.\n- x.com/didntdrinkwater for this readme.\n\n## Contact\nFor more information and updates, follow [@_nonfigurativ_](https://twitter.com/_nonfigurativ_) on Twitter.\n","funding_links":[],"categories":["JavaScript","📦 Legacy \u0026 Inactive Projects","前端开发框架及项目"],"sub_categories":["其他_文本生成、文本对话"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbgstaal%2FmultipleWindow3dScene","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbgstaal%2FmultipleWindow3dScene","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbgstaal%2FmultipleWindow3dScene/lists"}