Skip to content
项目

ShinoKana/multipleWindow3dScene

在 GitHub 查看

ShinoKana/multipleWindow3dScene has 717 GitHub stars and 68 forks. GitHot measured -1 stars in 24 hours and -2 in 7 days. Last checked 2026-11-24 21:44 UTC. Last push 2023-11-28.

这些数字如何统计

可以做什么

  • Multi-Window Synchronization: Using localStorage, the 3D scene's state is synchronized across multiple browser windows.
  • three.js Integration: Leveraging the power of three.js to render 3D graphics.
  • Responsive Design: The 3D scene adjusts to different window sizes, maintaining its visual consistency.

实测星标增长

24小时
-1
7天
-2
15天
正在收集历史
1个月
正在收集历史

各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。

关于

基于 bgstaal/multipleWindow3dScene。

创作与媒体

README.md

原文

3d scene spanning multiple windows using three.js and localStorage

A simple example showing how to setup a 3d scene across windows on the same origin using three.js and localStorage.

This is based on https://github.com/bgstaal/multipleWindow3dScene

https://github.com/ShinoKana/multipleWindow3dScene/assets/100673497/fc7a6357-0e29-4dc4-b183-194dfd6a16bc

Features

  • Multi-Window Synchronization: Using localStorage, the 3D scene's state is synchronized across multiple browser windows.
  • three.js Integration: Leveraging the power of three.js to render 3D graphics.
  • Responsive Design: The 3D scene adjusts to different window sizes, maintaining its visual consistency.

Setup

To get started with this project, follow these steps:

Installation

  1. Clone the Repository:

    git clone https://github.com/ShinoKana/multipleWindow3dScene.git
    cd multipleWindow3dScene
    
  2. Install http-server:

    If you don't have http-server installed globally, run:

    npm install -g http-server
    

Running the Project

  1. Start the Server:

    In the project directory, start the server by running:

    http-server
    
  2. Open the Application:

    Open your web browser and navigate to http://127.0.0.1:8080 or the URL provided in the command line output.

  3. Open Multiple Windows:

    To fully experience the multi-window setup, open multiple instances of the URL in different windows or tabs.

    cba819282e1fc915f926f2ed45a97e3

探索相关项目

加载中…