Files
Genarrative/.codex/plugins/game-studio/references/threejs-stack.md
T
kdletters 9476ff7648
Project CI / Frontend tests (push) Successful in 4m5s
Project CI / Repository checks (push) Successful in 4m23s
Project CI / Backend tests (push) Successful in 5m1s
Project CI / Native shell tests (push) Failing after 10m54s
迁移仓库工具资源到 Codex 并固化执行边界
将 .hermes 工具资源迁移至 .codex

同步代码、文档与 RAG 路径引用

补充任务范围、验收与时间盒执行规则
2026-08-27 13:55:25 +08:00

1.6 KiB

Three.js Stack

This is the default non-React 3D runtime stack for the plugin.

Primary components

Default stack choices

  • Runtime: three
  • Tooling: TypeScript + Vite
  • Assets: GLB or glTF 2.0
  • Loaders: GLTFLoader, DRACOLoader, KTX2Loader when the asset pipeline requires them
  • Physics: Rapier JS
  • UI: DOM overlays, not in-scene UI by default

Choose this stack when

  • the project is not React-first
  • the team wants direct control over the render loop
  • scene composition, loader setup, or custom render behavior needs imperative structure
  • the game code should feel engine-like without a React abstraction layer

Avoid this stack when

  • the surrounding app is already React-heavy and wants shared declarative state
  • the project needs an editor-first engine workflow more than a portable TypeScript runtime

Companion references

  • three-webgl-architecture.md
  • threejs-vanilla-starter.md
  • gltf-loading-starter.md
  • rapier-integration-starter.md
  • web-3d-asset-pipeline.md
  • webgl-debugging-and-performance.md