Work in progress. The scene, the data and the controls still change between versions.
An interactive 3D shelf of 3D-printing filament spools in a painted workshop. Spools ride on curved belts grouped by material; click a spool (or press Enter) to open its product card - brand, line, colour, material, finish, diameter, net weight and the nozzle and bed temperature ranges from the label. The light in the room follows the time of day.
Live: https://filament-room.vercel.app
- Rows of spools on belts with inertia, magnetic snapping to the nearest spool and a spring wave from the grab point.
- Spools built procedurally per brand: flanges with rims and windows, hub, winding computed from the spool mass, finishes (matte, satin, glossy, silk, silk dual, transparent, translucent, carbon).
- Product card that "prints" itself layer by layer under a glowing nozzle line.
- Painted backdrop with a depth map, so it moves with parallax behind the belts.
- Time-of-day lighting: seven repaints of the same room (night, dawn, morning, noon, afternoon, sunset, blue hour), blended by the browser's local time; the spool lighting follows the same clock.
- Toon shading with outlines and a subtle CRT screen texture; the filament colour in the light band is the exact hex from the data.
- Quiet synthesised UI sounds (Web Audio, no audio files).
- One self-contained
dist/index.html- all code, fonts, images and data inlined, works offline fromfile://.
| Input | Action |
|---|---|
| Left / Right arrows, mouse wheel, trackpad swipe, drag | Previous / next spool |
| Up / Down arrows, vertical drag | Previous / next row |
| 1, 2, 3 | Jump to a row |
| Enter or click on a spool | Open the product card |
| Wheel or arrows with the card open | Next / previous card |
| Esc, or drag down | Close the card |
Moving the mouse over the scene adds a slight camera parallax.
| Parameter | Effect |
|---|---|
?hour=16 |
Fixed hour of the day (0-24, decimals allowed, e.g. 19.5) instead of the local clock |
?timelapse=60 |
Full day in the given number of seconds, starting from hour or from now |
?still=1 |
Skip the intro animation and show the final state right away |
?row=1 |
Start on a row (index from 0, top to bottom) |
?select=<key> |
Open the card of one spool on start, e.g. ?select=3dactive-petg/transparent (keys are in the data file) |
?tier=low / ?tier=high |
Force the quality tier (lower max pixel ratio and lighter geometry on low; phones use low by default) |
?debug=1 |
Show sliders for the CRT texture strength |
- three.js with custom shader chunks (toon bands, outlines, parallax backdrop)
- TypeScript, Vite, vite-plugin-singlefile
- Fonts from Fontsource: Barlow Condensed, Barlow Semi Condensed, IBM Plex Mono
- No UI framework, no runtime network requests
Requires Node.js 20.19+ or 22.12+.
npm ci npm run dev # development server npm run build # type check + production build -> dist/index.html
dist/index.html can be opened directly in a browser or deployed as a static file.
The app reads one file: src/data/generated/filaments.json (schema filament-room-public-v1). It is committed to the repo and is the data source for every build.
rows-id,name,subtitleand the orderedkeysof the spools in each row.items- one entry per spool, keyed bykey:material,brand,line,colorNamediameterMm,massG- from the label, ornullnozzle,bed- temperature ranges[min, max]in °C from the label, ornullnozzleBands- optional manufacturer nozzle temperatures per print speedtraits- a short general description of the material (summary, stiffness, heat, ease, uses)finishStated- whether the card prints the finish as a factappearance- how to draw the spool:colors(hex),finish,opacity,tint,glossandspool(flange kind and colour, outer, width, hub and core sizes in mm)sort- order within the row
The file is generated by tools/build-data.mjs from a private catalogue of filament cards, which is not part of this repo. When the catalogue is not present (as in this repo), the build keeps the committed JSON and only validates it: tools/sanitize.mjs holds the field allowlist and assertPublic rejects paths and non-ASCII text. To use your own data, edit the JSON by hand following the same schema.
Code and project artwork (including the painted backdrop images in src/room/workshops/assets/) are released under the MIT licence. Third-party components and their licences are listed in THIRD_PARTY_NOTICES.md. Brand and product names shown on the cards are trademarks of their respective holders.
Chronosaur - github.com/Chronosauros
