Opus Motion ★ Star on GitHub

Image looks · tilt-shift-diorama

Tilt-shift diorama

A high three-quarter view of a little lit isometric town (cars, windows warming up, a train looping the track) where only a horizontal band is sharp and everything above and below melts into blur, with boosted saturation and vignette so it reads as a tabletop model. The sharp band follows the train. With src it applies the same tilt-shift to any picture.

A free, MIT-licensed image effect from the Opus Motion Library — 616 motions for Remotion, React and plain HTML.

Tilt-shift diorama: three frames of the image effect, start, middle and end
Tilt-shift diorama — start, middle and end of the 6.0-second motion.

What Tilt-shift diorama is for

Miniature look over any city / landscape plate, map overviews, "toy world" openers; overlay-capable as an image filter.

  • tilt shift
  • miniature
  • diorama
  • toy
  • depth of field
  • blur
  • isometric
  • town
  • train
  • model
  • map
  • image filter
  • overlay

Details

Category
Image looks & photo effects
Length
6.0 s (180 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
medium
Transparent overlay
no
Seamless loop
no
Text props
—
Colour props
trainColor background
Image props
src
Mood
photo, 3d, nature
Roles
backdrop

Use Tilt-shift diorama in Remotion, React or HTML

Remotion project

terminal
# copy this motion into your Remotion project
node cli/mgl.mjs add tilt-shift-diorama --to ../my-app/src

# render an mp4 (run in the library folder)
node cli/mgl.mjs render tilt-shift-diorama --props '{"trainColor":"#D9472F","background":"#CFE0D2","src":""}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export tilt-shift-diorama --as mp4 --props '{"trainColor":"#D9472F","background":"#CFE0D2","src":""}'

React / Next.js

tsx
import {MotionPlayer} from 'opus-motion-library/web';

<MotionPlayer
  motion="tilt-shift-diorama"
  props={{trainColor: '#D9472F', background: '#CFE0D2', src: ''}}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

html
<script src="opus-motion.element.js" defer></script>

<opus-motion motion="tilt-shift-diorama"
  props='{"trainColor":"#D9472F","background":"#CFE0D2","src":""}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "tilt-shift-diorama",
      "props": {
        "trainColor": "#D9472F",
        "background": "#CFE0D2",
        "src": ""
      }
    }
  ]
}

Tilt-shift diorama props

10 parameters — change any of them to make the motion yours.

PropDefaultWhat it does
src""optional image in public/ to tilt-shift instead of the built-in town
center0.4band centre as a fraction of height (used when follow is false or with src)
width0.1half-width of the fully sharp band (fraction of height, ~.1)
falloff0.3distance from sharp to maximum blur (fraction of height, ~.3)
maxBlur17maximum blur diameter in px at 1080p (16–18)
followtrueprocedural scene only: band follows the train head (clamped .2–.8)
saturation1.3colour boost that sells the miniature (1.15–1.4)
trainColor"#D9472F"loco colour
seed4town layout seed
background"#CFE0D2"ground colour around the board

Notes & credits

Technique sources:

  • lemo-opuscar styles/hd-2d/demo/post_ts.js tilt-shift term (MIT, LemoLab)
  • lemo-styles-a hd-2d: tilt-shift-diorama (2D strip fallback)