{"id":14981179,"url":"https://github.com/steve245270533/gallery","last_synced_at":"2025-05-15T07:06:07.060Z","repository":{"id":185291946,"uuid":"673299319","full_name":"Steve245270533/gallery","owner":"Steve245270533","description":"Digital exhibition project developed based on three.js.","archived":false,"fork":false,"pushed_at":"2024-11-15T03:40:33.000Z","size":47643,"stargazers_count":712,"open_issues_count":0,"forks_count":166,"subscribers_count":11,"default_branch":"master","last_synced_at":"2025-05-15T07:05:59.949Z","etag":null,"topics":["3d","digital-exhibition","game","threejs","typescript"],"latest_commit_sha":null,"homepage":"https://steve245270533.github.io/gallery/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Steve245270533.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-01T10:14:49.000Z","updated_at":"2025-05-07T02:19:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"c944387c-0117-4768-924f-7ce386399258","html_url":"https://github.com/Steve245270533/gallery","commit_stats":{"total_commits":27,"total_committers":3,"mean_commits":9.0,"dds":0.2962962962962963,"last_synced_commit":"2de87610b903d8c1289e570e60479df56f87bbc0"},"previous_names":["steve245270533/gallery"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Steve245270533%2Fgallery","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Steve245270533%2Fgallery/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Steve245270533%2Fgallery/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Steve245270533%2Fgallery/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Steve245270533","download_url":"https://codeload.github.com/Steve245270533/gallery/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254292042,"owners_count":22046426,"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":["3d","digital-exhibition","game","threejs","typescript"],"created_at":"2024-09-24T14:03:05.356Z","updated_at":"2025-05-15T07:06:02.052Z","avatar_url":"https://github.com/Steve245270533.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gallery（数字展馆）\n\n![cover.jpg](./cover.jpg)\n\n## 介绍\n本项目中使用的技术栈为`three.js`，使用`blender`进行建模，最后烘焙渲染场景贴图，导出`glb`地图格式在Web端渲染。  \n此项目仅为数字展馆概念的demo项目，如有不完善的地方还请多多包涵，有任何问题都可以提issue。\n\n## 如何操作?\n行走：`W`/`S`/`A`/`D`\n\n移动端行走操作: `虚拟摇杆`\n\n跳跃：`空格`\n\n控制视角：`鼠标左键拖动`\n\n## 目录结构说明\n```text\n├── src                        # 源代码\n│   ├── assets                 # 资源文件夹（音频、贴图、模型）\n│   │── audio                  # 音频类（创建位置音频）\n|   │── character              # 人物角色类（人物模型控制）\n|   │── controlManage          # 键盘控制类（键盘按键或虚拟摇杆状态管理）\n|   │── core                   # 核心基础类（包括camera、renderer、scene等）\n|   │── css3DRenderer          # 负责DOM元素与WebGL的内容相结合（渲染电脑屏幕的iframe元素）\n|   │── environment            # 场景类（创建地图模型、画展贴图、地面镜面反射）\n|   │── lib                    # three.js相关扩展库\n|   │── loader                 # 加载器类（glb、texture、audio等加载器管理）\n|   │── rayCasterControls      # 射线投射类（角色与画框交互触发检测）\n|   │── ui                     # UI类（负责控制渲染页面的部分UI，例如加载进度页，详情窗口，虚拟摇杆）\n|   │── utils                  # 工具函数\n|   |    │── Emitter.ts        # 事件分发类（各类事件的分发）\n|   |    └── typeAssert.ts     # 类型推导工具函数\n|   │── world          # 游戏核心类（用于管理游戏世界中的核心元素，包括环境、角色、交互探测和音频等组件）\n|   │── main.ts        # 页面入口函数\n|   └── Constants.ts   # 常量定义（定义模型/贴图/媒体资源地址、分发事件名等）\n```\n\n## 对于此开源项目的个人想法： \n受threejs官网demo项目的灵感，在开发此项目时尝试了很多方案，也看到有很多类似的项目，但大多这类型的项目都是明码标价售卖的（格局太小了），反观老外的github上，有大量优秀的3D开源项目，这也正是别人技术发展如此迅速的原因。\n因此本人还是觉得不要吝啬于贡献技术，多多开源项目，给到更多人灵感，相互提供帮助才能更好地推动行业发展。\n\n\u003e 开源不易，多多Star⭐⭐⭐  \n\n## 捐赠\n开源不易，你的支持，就是我的源源不断的动力！本项目为开源项目，捐赠均为自愿。\n### 如何捐赠？\n[爱发电⚡](https://afdian.net/a/twimark)\n\n## 🎇feature：  \n1. 高性能碰撞检测：  \n因为这类项目对于物理引擎的应用场景并不多，经过不懈的技术方案调研后使用了一套不依赖于物理引擎的高性能的动态碰撞检测方案。比`three.js`官网的`Octree`方案性能还要好上几倍。\n2. 画展交互：  \n利用光线投射进行物体探测触发互动效果。\n3. 位置音频：  \n加入了位置音频，模拟现实中的听觉传播，使得场景中的音乐更具有空间感，提升浏览体验。\n\n## 运行\nTo setup a dev environment:\n```text\n# Clone the repository\n\n# Install dependencies\nnpm i\n\n# Run the local dev server\nnpm run dev\n```\nTo serve a production build:\n```text\n# Install dependencies if not already done - 'npi i'\n\n# Build for production\nnpm run build\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteve245270533%2Fgallery","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsteve245270533%2Fgallery","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsteve245270533%2Fgallery/lists"}