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/media/panorama

Exports of @dioramajs/media/panorama.

View as Markdown
On this page
import { default, halves } from '@dioramajs/media/panorama'

Functions

halvesTangents of half the view across and up a box `width` by `height` for a vertical field of view `fov` in degrees. A portrait box sees a little wider, so a phone is not looking through a slit; the width never takes more than 110°.

Constants

defaultA 360° photo in the element's box, turned by drag, keys and the phone's gyroscope, with hotspots that follow their links. Without WebGL the poster and the links stay.