Hamza Ben Said - Spline Camera with Live Editor Preview

Spline-driven gameplay cameras with an editor preview that matches the game.

CameraSpline is a camera system for side-scrollers, 2.5D, top-down, fixed-angle and room-based games. A camera rides a spline through each room and follows the player, and every point of the spline sets its own framing. Tune it in the editor, watch it run with a stand-in player, and get the same shot in play.

Try it first: a packaged Windows demo of the example level, no engine needed: https://drive.google.com/file/d/12ELWMckW0PGr_nIs18ac9LWSM7Dwz18O/view?usp=sharing

Main features

  • Per-point framing. Arm length, pitch, yaw, roll, Y/Z offsets, max distance from the player and smoothing speeds, set on each spline point and blended between points.

  • Rooms. Each camera owns a room volume: step in and the view blends to that camera, or cuts with blend time 0. Local split screen and respawns supported.

  • Bias. Shift the framing from the player (0) towards a point of interest (1): a door, a puzzle, an enemy. At 1 the camera holds still for fixed-angle shots.

  • Look At and Sway. Turn the camera towards the player on chosen points, and add a hand-held sway with its own amount, frequency and irregularity.

  • Editor preview. Press Play in the Camera Preview tab: a stand-in player walks the spline and the viewport shows the camera. No Play In Editor needed.

  • Viewport HUD. Edit each point's values live in the viewport and jump from point to point.

  • Export to Level Sequence. Bake the camera run into a Level Sequence with a CineCamera, then edit it in Sequencer.

  • Preview = game. The preview, the export and the runtime compute the camera with the same functions from the same data.

Included: a Camera Examples level with seven camera styles made only with spline settings: side-scroller, behind the player, top-down, fixed angle, dynamic framing, vertical climb, cinematic reveal. To play it, set a game mode with a playable character in Project Settings › Maps & Modes (for example the Third Person template's).

Technical details

  • Three C++ modules, full source included: runtime, editor, and the example level's menu

  • Unreal Engine 5.8, tested on Windows

  • Dependencies: Level Sequence Editor (built-in engine plugin, enabled automatically; used by Export to Level Sequence)

  • Set up in the level, no code required. Blueprint and Python API to build cameras from scripts

  • Documentation: https://drive.google.com/file/d/1ihCoz7bRhVbWoJPqBFiegIqZBtNGRfe7/view?usp=sharing

  • Support: the Comments section of this listing

1 Like