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

Model interface

A glTF owned by the cache.

View as Markdown
import type { Model } from '@dioramajs/diorama/assets'

Place instances and never dispose their resources.

interface Model

Members

NameTypeDescription
readonly animationsreadonly AnimationClip[]

Animation clips of the file.

readonly sceneGroup

The loaded scene. Place instances, not this group.

instance
instance(): Object3D

A clone sharing geometry, materials and textures (SkeletonUtils for skinned). The shared resources carry userData.keep. The clone's own objects are disposed with the effect.

Also exported from @dioramajs/assets.

Defined in packages/assets/src/types.ts.