GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - Chronosauros/filament-room: Interactive 3D shelf of 3D-printing filament spools in a painted workshop - work in progress

BranchesTags
Open more actions menu

Latest commit

 

History

1 Commit
1 Commit

Folders and files

NameName
Last commit message
Last commit date
docs
docs
 
 
src
src
 
 
tools
tools
 
 
.gitignore
.gitignore
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
THIRD_PARTY_NOTICES.md
THIRD_PARTY_NOTICES.md
 
 
index.html
index.html
 
 
package-lock.json
package-lock.json
 
 
package.json
package.json
 
 
tsconfig.json
tsconfig.json
 
 
vite.config.ts
vite.config.ts
 
 

Repository files navigation

Filament Room

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

Filament Room - rows of filament spools on belts in a painted workshop

Features

  • 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 from file://.

Controls

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.

URL parameters

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

Tech stack

  • 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

Running locally

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.

Data

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, subtitle and the ordered keys of the spools in each row.
  • items - one entry per spool, keyed by key:
    • material, brand, line, colorName
    • diameterMm, massG - from the label, or null
    • nozzle, bed - temperature ranges [min, max] in °C from the label, or null
    • nozzleBands - optional manufacturer nozzle temperatures per print speed
    • traits - a short general description of the material (summary, stiffness, heat, ease, uses)
    • finishStated - whether the card prints the finish as a fact
    • appearance - how to draw the spool: colors (hex), finish, opacity, tint, gloss and spool (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.

Licence

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.

Author

Chronosaur - github.com/Chronosauros

About

Interactive 3D shelf of 3D-printing filament spools in a painted workshop - work in progress

filament-room.vercel.app

Topics

3d-printingfilamentthreejstypescriptvitewebgl

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.