Repository navigation
This release focuses on KlippControls: an endless dolly, pan locks, a turntable autoMove, events, stop() and more mouse and trackpad shortcuts. It also adds insets, so the shot stays clear of UI covering part of the canvas, a scene up for z-up scenes from Blender or CAD, banked spline paths and a zoom axis on Lens.
✨ New Features
- Scene up:
uponKlippforz-up scenes from Blender or CAD.KlippThreeand<Klipp>take it from the camera. - Insets:
klipp.setInsetsframes the shot in the part of the canvas not covered by UI, like a side panel or a drawer. In React,<Klipp insets>. KlippControls:infinityDollykeeps zooming past the distance limits.panLockpans along chosen axes only, like on the ground.stop()stops every move.- Events:
controlStart,controlEnd,wakeandrest, in React through<KlippControls.Events>. - Zoom with the middle button or Ctrl-drag, pan with Shift- or Meta-drag.
autoMoveonInputAxismoves an axis on its own after a while without input, like a turntable.modifiersonInputControllermap mouse buttons differently while a key is held.zoomaxis onLensmagnifies the view with the wheel or a pinch, andzoomAxison a drag turns the camera slower while zoomed in.SplineRollbanks aSplineDollypath like a roller coaster.SplineDolly:tensionsharpens the turns at knots, andremaining()tells how far the camera still has to go.BlendHints.inheritPositionstarts a camera from the shot on screen.recenteringandautoMovesettings take only the fields you change.- A piece that changes
referenceUpchanges it for one frame, like the lens.
🐛 Bug Fixes
- Spherical and cylindrical blends keep going the same way round the target as cameras turn, also in
MixingCamera, and handle a camera right above or below it. - An interrupted spherical or cylindrical blend keeps its arc when one camera has no target.
SplineDollyLookAtTargetsno longer swings to the other side when the camera passes a target.KlippControlsstarts at the right distance with a pan, comes to rest when the distance limits stop a damped zoom, and waits again to recenter after any input or move.
⚠️ Breaking Changes
sphericalPositionandcylindricalPositionarc around the target of either camera. A camera without one, like aHardLockToTargetmount, now arcs around the other's instead of moving straight.mixing.mix(out, state, params, cameras)takes aMixingStatefrommixing.createState().spline.create,createSplineandtoSplinetake{ closed }as options instead of a boolean.debugZones.groupFramingPaddingBox(out, params, lens, distance)takes theGroupFramingsettings and the camera's lens.
What's Changed
- chore: update dev dependencies, Node 24 and version 0.19.0 by @kvvasuu in #155
- fix: keep the target of an interrupted blend for blend hints by @kvvasuu in #156
- feat: per-knot tension on spline paths by @kvvasuu in #157
- chore: move site to apps/react by @alvarosabu in #158
- fix(tres): update Klipp after scene logic, add a Vue playground by @alvarosabu in #159
- feat(apps): Littlest Tokyo landing by @kvvasuu in #160
- feat: add TresJS integration by @kvvasuu in #161
- fix: keep a spherical blend turning the same way round its target by @kvvasuu in #162
- fix: look at targets continuity by @kvvasuu in #163
- fix(apps): show cached showcase models again after switching scenes by @kvvasuu in #164
- fix: keep a spherical mix turning the same way round its target by @kvvasuu in #165
- feat: remaining distance on SplineDolly by @kvvasuu in #166
- feat: BlendHints.inheritPosition by @kvvasuu in #167
- feat: KlippControls events by @kvvasuu in #168
- chore(apps): remove the example placeholder and the ready flag by @kvvasuu in #169
- feat: infinityDolly on KlippControls by @kvvasuu in #170
- feat: SplineRoll extension by @kvvasuu in #171
- refactor(apps): tidy the Tokyo showcase by @kvvasuu in #172
- feat: zoom KlippControls with the middle button by @kvvasuu in #173
- feat: stop() on KlippControls by @kvvasuu in #174
- feat: autoMove on InputAxis by @kvvasuu in #175
- feat: modifier keys for mouse buttons by @kvvasuu in #176
- feat: panLock on KlippControls by @kvvasuu in #177
- fix!: arc blend hints around the target of either camera by @kvvasuu in #178
- feat: zoom axis on Lens by @kvvasuu in #179
- feat: scene up on Klipp by @kvvasuu in #180
- feat!: viewport insets by @kvvasuu in #181
- chore: tidy code and docs before 0.19.0 by @kvvasuu in #182
New Contributors
- @alvarosabu made their first contribution in #158
Full Changelog: v0.18.0...v0.19.0