SHADERERA®Video made in code · v0.1.2PluginsAgentsGitHub ↗
← PluginsAnimation & Cameracomponent · v0.1.0 · MIT
camera-shakeOfficial · by Shaderera

Camera shake

A camera that breathes, is handheld, or kicks on the hits of the music: seeded noise and hit envelopes as formulas of t, applied in camera space.

Add it to a filmOr ask your agent
“Use the shaderera-plugins skill to add camera-shake to this film and wire it in, then run check and show me a still.”
Type
component · Animation & Camera
Version
0.1.0 · published
Licence
MIT
npm
No packages
Tags
camera shake, handheld, impact, noise, breathing, 3d, deterministic
Source on GitHub ↗
READMEcamera-shake

How to
use it.

Camera shake as a formula of t: a camera that breathes, is handheld, or takes the hits of the music, the same on every render.

README.mdexample
import { hits, SHAKE, shake } from './motion/shake.ts'// in render(t), after the camera tracklet c = camera(t, W / H)c = shake(c, t, SHAKE.breathe)                                  // alive, never stillc = shake(c, t, SHAKE.impact, hits(t, [clock.at(17), clock.at(25)], 0.3), 2)   // kicks on the dropsapplyToThree(c, threeCamera, W / H)

Presets: breathe, handheld-mild, handheld, impact. Seeded noise and exponential hit envelopes, both pure functions of t: no Math.random, no decay stepped per frame. It turns the camera in its own space, so the authored target stays where it is. Built on camera-keyframes.

More in Animation & Camera02 plugins

More in Animation & Camera