Opus Motion ★ Star on GitHub

3D · ocean-surface-3d

Ocean surface 3D

A perspective sea built from Gerstner waves with analytic normals, fresnel sky reflection, sparkling sun glitter, crest foam and horizon fog under a gradient sky and sun glow; low-skim, high or drifting camera.

A free, MIT-licensed 3D motion graphic from the Opus Motion Library — 616 motions for Remotion, React and plain HTML.

Ocean surface 3D: three frames of the 3D motion graphic, start, middle and end
Ocean surface 3D — start, middle and end of the 8.0-second motion.

What Ocean surface 3D is for

Travel, maritime and calm brand heroes, film openers, looping website backgrounds (put the words in HTML over it). For a stylised low-poly sea use faceted-sea instead.

  • ocean
  • sea
  • water
  • waves
  • gerstner
  • three.js
  • 3d
  • fresnel
  • glitter
  • foam
  • horizon
  • sunset
  • travel
  • maritime
  • calm
  • loop
  • background
  • hero
  • film opener
  • shader

Details

Category
3D motion graphics (three.js)
Length
8.0 s (240 frames at 30 fps)
Formats
16:9, 1:1, 9:16
Weight
heavy (three.js / WebGL — export to video for mobile)
Transparent overlay
no
Seamless loop
no
Text props
title subtitle
Colour props
deepColor shallowColor skyZenith skyHorizon sunColor ink
Mood
3d, cinematic, nature
Roles
subject

Use Ocean surface 3D in Remotion, React or HTML

Remotion project

terminal
# copy this motion into your Remotion project
node cli/mgl.mjs add ocean-surface-3d --to ../my-app/src

# render an mp4 (run in the library folder)
node cli/mgl.mjs render ocean-surface-3d --props '{"title":"","subtitle":"","deepColor":"#03203A","shallowColor":"#12889E","skyZenith":"#2459A8","skyHorizon":"#B4D2E8","sunColor":"#FFE9C2","ink":"#FFFFFF"}'

# or export for apps / editors: mp4 | webm-alpha | prores-alpha | gif | png | poster
node cli/mgl.mjs export ocean-surface-3d --as mp4 --props '{"title":"","subtitle":"","deepColor":"#03203A","shallowColor":"#12889E","skyZenith":"#2459A8","skyHorizon":"#B4D2E8","sunColor":"#FFE9C2","ink":"#FFFFFF"}'

React / Next.js

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

<MotionPlayer
  motion="ocean-surface-3d"
  props={{
    title: '',
    subtitle: '',
    deepColor: '#03203A',
    shallowColor: '#12889E',
    skyZenith: '#2459A8',
    skyHorizon: '#B4D2E8',
    sunColor: '#FFE9C2',
    ink: '#FFFFFF',
  }}
  playOnView
  loop="auto"
/>

Plain HTML / WordPress

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

<opus-motion motion="ocean-surface-3d"
  props='{"title":"","subtitle":"","deepColor":"#03203A","shallowColor":"#12889E","skyZenith":"#2459A8","skyHorizon":"#B4D2E8","sunColor":"#FFE9C2","ink":"#FFFFFF"}'>
</opus-motion>

Compose spec (multi-scene video)

json
{
  "width": 1920,
  "height": 1080,
  "fps": 30,
  "scenes": [
    {
      "motion": "ocean-surface-3d",
      "props": {
        "title": "",
        "subtitle": "",
        "deepColor": "#03203A",
        "shallowColor": "#12889E",
        "skyZenith": "#2459A8",
        "skyHorizon": "#B4D2E8",
        "sunColor": "#FFE9C2",
        "ink": "#FFFFFF"
      }
    }
  ]
}

Ocean surface 3D props

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

PropDefaultWhat it does
deepColor"#03203A"deep water colour
shallowColor"#12889E"shallow / crest scattering colour
skyZenith"#2459A8"sky colour overhead (also what the sea reflects)
skyHorizon"#B4D2E8"sky + fog colour at the horizon
sunColor"#FFE9C2"sun and glitter colour
sunElevation11sun height above the horizon in degrees (low = long glitter path)
sunAzimuth6sun direction in degrees (0 = straight ahead)
waveHeight0.8wave amplitude multiplier (0.3 calm - 2 rough)
steepness0.3Gerstner steepness 0.2-0.4 (sharper crests, more foam)
speed1wave time scale
foam1crest foam amount (0 = none)
glitter1sun glitter intensity (0 = none)
fog0.55horizon fog density
camera"low"low (skim) | high (look-down) | drift (slow sway)
title""optional serif title over the sea (empty = none)
subtitle""optional mono subtitle
ink"#FFFFFF"title colour

Notes & credits

Technique sources:

  • prompt-corpus: awesome-opus5-5-videos (MIT) — Gerstner ocean cases (9), original implementation