Diorama

Made for a big screen.

This site is one 3D scene, built for a computer: a wide window and a mouse. Open dioramajs.dev on a desktop or a laptop to see it.This site is one 3D scene, built for a wide window. Make this one wider, or open dioramajs.dev on a larger screen.

GitHub

DioramaDocs

@dioramajs/model/model

Exports of @dioramajs/model/model.

View as Markdown
On this page
import { default, steps, twin } from '@dioramajs/model/model'

Functions

stepsKey times of a clip whose every track steps from key to key, like a ticking hand, sorted. Undefined if any track blends between keys: then every frame shows something new.
twinA node material owned by the instance with the same look as a glTF one: textures stay shared with the cache, colours and vectors are copied. Undefined for kinds glTF lines and points use.
untilKeySeconds from clip time `at` to the next key, through the end of the loop.

Constants

defaultA glTF fitted to the element's box: turntable, tilt, drag, clips and part colours.