Repository navigation
tinythree v0.4.0 makes one .t3 file work in both Three.js and Blender, and loads large, compressed glTF models.
New
- Blender layer:
mod,con,set,key,render,cam,spot,area,sky,hdri,haze,shade,terrain,curve,scatter,rigidandpyblocks are kept in the parsed tree (ast.blender,ast.py) and skipped by Three.js. The same file builds a native Blender scene with tinythree-blender. - Compressed glTF models:
modelnow loads Draco- and meshopt-compressed GLB files.
Fixes
- Draco/meshopt GLBs used to load as an empty frame with no error.
- Model load errors are no longer silent: they go to
globalThis.tinythreeErrors, andtools/render.pystops with scene failed to load instead of recording a blank video.
Numbers
Tested with large real files: Littlest Tokyo (Draco, 141 k triangles, 30 s / 900 frames), Sponza (262 k triangles, 69 textures) and BrainStem (skinned, 35 s / 1,050 frames). Full-length videos render with the clip looping in step.
| Littlest Tokyo scene | tokens |
|---|---|
| tinythree | 119 |
| hand-written Three.js | 831 (7.0×) |
| hand-written Blender Python | 1,196 (10.1×) |
Details: tinythree-blender/bench/GLB.md