Three HUD
Draw game UI inside the Three.js canvas.
No HTML or CSS recreation, no React, and no frame loop of its own. The host keeps the renderer, clock and game state.
Open the playground
pnpm --filter @three-hud/playground dev --host 127.0.0.1 --port 4174
Status
v0.1 code, not on npm yet.
The package and its gates exist in the repository. releaseReady is false.
Playground
The live playground on GitHub Pages.
Captured from the public Pages build. Add ?webgpu=1 for the WebGPU renderer path.
Demo
Text backends sit on subpaths
@scope/three-hud@scope/three-hud/text/windfoil@scope/three-hud/text/sdf@scope/three-hud/text/bitmap@scope/three-hud/testing
Keys
Playground keys.
From the README. The maze walks a wireframe tour until you take over.
| Input | Action |
|---|---|
| P | Pause or resume the tour |
| W A S D | Move |
| Q E | Turn |
| Shift | Sprint |
| 16 | Activate a hotbar slot |
| I | Invert the monochrome HUD |
| F | Switch the ui and pixel fonts |
docs/api/GETTING_STARTED.md
SourceLinks
Try it, read it.
Open the playground and walk the maze.