Opus Motion ★ Star on GitHub

Maps · hairline-feature-trace

Hairline feature trace

On a dark raking-lit survey surface, 1-px amber hairlines light up along traced features in order (compound walls, a sinuous road, a pipe run, a boundary loop). Each line has a bright head glow at the drawing front and a faint halo behind, stays crisp at any distance, and is draped on the terrain while the camera drifts.

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

Hairline feature trace: three frames of the animated map, start, middle and end
Hairline feature trace — start, middle and end of the 8.0-second motion.

What Hairline feature trace is for

Route, network and boundary reveals on terrains and maps; complements map-route and topdown-terrain.

  • hairline
  • trace
  • survey
  • terrain
  • routes
  • roads
  • pipes
  • boundary
  • map
  • amber
  • network
  • light up
  • lidar
  • draw on

Details

Category
Animated maps & geo graphics
Length
8.0 s (240 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
light
Transparent overlay
no
Seamless loop
no
Text props
labels caption
Colour props
amber background surface
Mood
nature, night
Roles
subject

Use Hairline feature trace in Remotion, React or HTML

Remotion project

terminal
# copy this motion into your Remotion project
node cli/mgl.mjs add hairline-feature-trace --to ../my-app/src

# render an mp4 (run in the library folder)
node cli/mgl.mjs render hairline-feature-trace --props '{"labels":["Walls","Roads","Pipes","Boundary"],"caption":"Plan trace, vertical exaggeration x1.0","amber":"#FFB347","background":"#07090B","surface":"#2A2D2F"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export hairline-feature-trace --as mp4 --props '{"labels":["Walls","Roads","Pipes","Boundary"],"caption":"Plan trace, vertical exaggeration x1.0","amber":"#FFB347","background":"#07090B","surface":"#2A2D2F"}'

React / Next.js

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

<MotionPlayer
  motion="hairline-feature-trace"
  props={{
    labels: ['Walls', 'Roads', 'Pipes', 'Boundary'],
    caption: 'Plan trace, vertical exaggeration x1.0',
    amber: '#FFB347',
    background: '#07090B',
    surface: '#2A2D2F',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="hairline-feature-trace"
  props='{"labels":["Walls","Roads","Pipes","Boundary"],"caption":"Plan trace, vertical exaggeration x1.0","amber":"#FFB347","background":"#07090B","surface":"#2A2D2F"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "hairline-feature-trace",
      "props": {
        "labels": [
          "Walls",
          "Roads",
          "Pipes",
          "Boundary"
        ],
        "caption": "Plan trace, vertical exaggeration x1.0",
        "amber": "#FFB347",
        "background": "#07090B",
        "surface": "#2A2D2F"
      }
    }
  ]
}

Hairline feature trace props

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

PropDefaultWhat it does
amber"#FFB347"hairline colour
speed5.5draw speed in plan units per frame (200-unit plot)
gap8frames between features
startAt14frame the first feature starts
labels["Walls","Roads","Pipes","Boundary"]four feature labels in order
caption"Plan trace, vertical exaggeration x1.0"small caption at the bottom-left of the frame
size200terrain plot size in metres
seed6terrain seed
background"#07090B"backdrop colour
surface"#2A2D2F"low-ground colour of the lit surface

Notes & credits

Technique sources:

  • lemo-opuscar styles/lidar-survey/demo/film.js surface shader (MIT, LemoLab)
  • lemo-styles-a lidar-survey: hairline-feature-trace