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

Errors

Every code Diorama prints in the console, what it means and how to fix it.

View as Markdown
On this page

Diorama prefixes its console messages with [diorama] or [diorama:plugin] and starts them with a code. In development builds the message ends with the address of its page here. Paste a whole message into search to find its page.

@dioramajs/diorama/assets

CodeLevelWhat happened
ASSET_ABORTEDerrorAn asset lease was released or aborted before the asset finished loading, so its ready promise rejected.
ASSET_DECODERerrorA compressed model or texture needs a Draco, KTX2 or Meshopt decoder that is blocked, missing or turned off.
ASSET_LOADerrorAn asset request failed on the network or with an HTTP error, so its lease rejected and nothing was cached.
ASSET_PARSEerrorAn asset downloaded, but its content could not be decoded or parsed, so its lease rejected.
ASSET_TYPEwarningDiorama cannot tell what kind of asset a URL is, most often a page address given to preload, so nothing loads for it.

@dioramajs/diorama/effects

CodeLevelWhat happened
EFFECT_COMPILEerrorThe surface material with an effect's transforms failed to compile, so the effect is dropped from the surface.
EFFECT_CORSerrorThe image of an effect comes from another origin whose server sends no CORS headers, so its pixels cannot be read.
EFFECT_DEFINITIONerrorAn effect definition breaks a rule, such as a reserved param name, so the effect cannot be defined or registered.
EFFECT_LOADerrorA lazy chunk did not download, either the engine with three.js or the module of one effect.
EFFECT_MEDIAerrorThe image or video of a media effect has no usable pixels, so the instance failed until the source changes.
EFFECT_PARAMwarningA param value or param attribute was rejected, so the effect keeps the value from the layer below it.
EFFECT_SETUPerrorThe setup function of an effect threw or rejected, so that instance failed and its element shows plain DOM.
EFFECT_TARGETwarningAn effect does not fit the element it is on, or two owners compete for one element, layer or copy.
EFFECT_UNKNOWNwarningMarkup or code names an effect that is not registered, so the element stays plain DOM.
EFFECT_UPDATEerrorThe update function of an effect threw during a frame, so that instance failed at once.
RENDER_LOSTerrorThe GPU device or WebGL context was lost, or rendering was disabled, so every effect switched off and the DOM shows again.
RENDER_UNAVAILABLEwarningThe browser has neither a WebGPU adapter nor WebGL 2, so effects stay off and nothing of the engine is downloaded.

@dioramajs/diorama/core

CodeLevelWhat happened
EFFECT_OVERRIDEwarningAn effect of your site has the name of a built-in one, so it replaces the built-in everywhere on the page.

@dioramajs/diorama/glsl

CodeLevelWhat happened
GLSL_PRAGMAerrorA `// @diorama` line in a shader sets `when`, `reducedMotion` or `presence` to a value the effect cannot take, so the conversion fails.

@dioramajs/diorama/transitions

CodeLevelWhat happened
TRANSITION_ANIMATEerrorThe animate function of a page transition threw or its promise rejected, so every copy landed at once.
TRANSITION_KEYwarningSeveral new elements share one data-dio-key, so the flight lands on the first of them in document order.
TRANSITION_SWAPerrorThe promise returned by the swap function of a page transition rejected, so the transition ended as failed.
TRANSITION_TIMEOUTwarningThe swap promise of a page transition did not settle within the timeout, so the transition gave up its flights.