Skip to content

v0.19.0 - Full Control

Latest

Choose a tag to compare

@kvvasuu kvvasuu released this 25 Nov 19:53
· 1 commit to main since this release
279ebfc

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: up on Klipp for z-up scenes from Blender or CAD. KlippThree and <Klipp> take it from the camera.
  • Insets: klipp.setInsets frames the shot in the part of the canvas not covered by UI, like a side panel or a drawer. In React, <Klipp insets>.
  • KlippControls:
    • infinityDolly keeps zooming past the distance limits.
    • panLock pans along chosen axes only, like on the ground.
    • stop() stops every move.
    • Events: controlStart, controlEnd, wake and rest, in React through <KlippControls.Events>.
    • Zoom with the middle button or Ctrl-drag, pan with Shift- or Meta-drag.
  • autoMove on InputAxis moves an axis on its own after a while without input, like a turntable.
  • modifiers on InputController map mouse buttons differently while a key is held.
  • zoom axis on Lens magnifies the view with the wheel or a pinch, and zoomAxis on a drag turns the camera slower while zoomed in.
  • SplineRoll banks a SplineDolly path like a roller coaster.
  • SplineDolly: tension sharpens the turns at knots, and remaining() tells how far the camera still has to go.
  • BlendHints.inheritPosition starts a camera from the shot on screen.
  • recentering and autoMove settings take only the fields you change.
  • A piece that changes referenceUp changes 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.
  • SplineDollyLookAtTargets no longer swings to the other side when the camera passes a target.
  • KlippControls starts 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

  • sphericalPosition and cylindricalPosition arc around the target of either camera. A camera without one, like a HardLockToTarget mount, now arcs around the other's instead of moving straight.
  • mixing.mix(out, state, params, cameras) takes a MixingState from mixing.createState().
  • spline.create, createSpline and toSpline take { closed } as options instead of a boolean.
  • debugZones.groupFramingPaddingBox(out, params, lens, distance) takes the GroupFraming settings 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

Full Changelog: v0.18.0...v0.19.0