Skip to content

tinythree v0.3.0

Choose a tag to compare

@muskec06 muskec06 released this 16 Nov 09:47
· 13 commits to main since this release

tinythree v0.3.0 adds content with one line each: text labels, glTF models, textures and a part library. Scenes that use them now need up to 6.9× fewer tokens than hand-written Three.js.

▶ Open the new Town Square scene in the playground

New

  • Text labels: text sign "Town Square" @0,4,0 bg=#1b2a4a s=1.4. Camera-facing sprites that also appear in rendered videos. top draws them above everything.
  • glTF / GLB models: model mill assets/windmill.glb @14,0,-12 play. play runs the model's own animations, driven by time, so videos are frame-exact. Video rendering waits for models to load.
  • Textures: mat brick map=brick rep=3,2. Use an image file/URL or one of 7 built-in procedural textures (checker, grid, brick, tiles, wood, grass, noise), drawn with a fixed seed.
  • Part library: use lib:tree t @-10,0,10 array=5,5,0,0. 13 real-size parts: tree, pine, bush, person, car, bench, streetlamp, door, window, column, fence, stairs, house.
  • New example, town-square.t3, plus a small animated test model (examples/assets/windmill.glb)

Fixes

  • Relative model and texture paths resolve against the .t3 file, in the playground and in tools/render.py
  • // starts a comment only at the start of a line or after whitespace, so https:// URLs survive
  • GitHub Actions moved off the deprecated Node 20 runtime

Numbers

Three.js tinythree
Town Square 3,207 464 6.9× fewer
All 11 scenes 14,151 4,057 3.5× fewer (was 3.0×)
  • Capability audit: 39/39 browser probes pass (docs/CAPABILITIES.md).
  • AI prompt: grew from ~1,400 to ~1,500 tokens.