Skip to content

tinythree v0.4.0

Latest

Choose a tag to compare

@muskec06 muskec06 released this 17 Nov 12:37
f03e052

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, rigid and py blocks 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: model now 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, and tools/render.py stops 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