1.6 KiB
1.6 KiB
Three.js Stack
This is the default non-React 3D runtime stack for the plugin.
Primary components
- Three.js documentation for the core renderer, scene graph, materials, cameras, loaders, and examples.
- Rapier JavaScript guide for physics integration.
- glTF 2.0 specification for the default shipping asset format.
- glTF Transform for optimization, packaging, and compression workflows.
- SpectorJS for WebGL frame capture and GPU debugging.
Default stack choices
- Runtime:
three - Tooling: TypeScript + Vite
- Assets: GLB or glTF 2.0
- Loaders:
GLTFLoader,DRACOLoader,KTX2Loaderwhen 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.mdthreejs-vanilla-starter.mdgltf-loading-starter.mdrapier-integration-starter.mdweb-3d-asset-pipeline.mdwebgl-debugging-and-performance.md