FilipeTessaro - Viewcraft: Gameplay Camera for Third and First Person, Lock-On and Vehicles

Viewcraft is a gameplay camera for third and first person in Unreal Engine 5.6, 5.7 and 5.8. It lives in the player camera manager, so the pawn needs no spring arm and no camera component: a character, a vehicle and a mount are all just a view target.

Modes as data. A mode is a Data Asset: arm length, pivot, shoulder, field of view, pitch limits, lag, look ahead, speed effects. The camera stacks the modes in play and blends them, so a mode interrupted halfway never jumps. 20 modes and 4 mode sets ship ready to use.

Picks the mode by itself from what the pawn is doing: walking, sprinting, crouched, falling, swimming, flying, or a state of your own (climbing, gliding) from one Blueprint event or a C++ interface. The same states in third and in first person.

Collision that does not clip. The arm is swept with a sphere, and a prediction shortens it for the wall the camera is about to meet, so a corner does not pop the camera in. Other pawns and what hangs on the character never push it in. A shake stops at the wall too. Something thin between the camera and the character (a banner, a branch) fades instead of pushing the camera, per player in split screen.

Lock-on with target switching, line of sight, a soft lock that leans the view, and a Blueprint filter for who can be a target.

Over the shoulder with a swap that checks for room and one that happens by itself next to a wall. Zoom by the player.

Vehicles and mounts bring their own modes. Taking or leaving one blends the camera instead of cutting.

Framing like a film camera: the character composed off center, a dead zone it moves in before the camera follows, and a group (player and boss, two players) kept in the shot together.

Cameras of the level: fixed cameras and cameras on a rail, cut or blended in by a volume. Camera Volumes also put a mode on, turn the view to a point of interest or keep the camera inside a box.

Other genres from the same camera: strategy and build views with a free pivot, edge pan and zoom to the cursor; side-scroller, top-down and isometric with the yaw held.

Procedural motion: head bob, landing dip, roll into turns, breathing, lean around corners, four shake presets.

Multiplayer. The camera runs only on the machine that owns the view, never on the dedicated server. A spectator sees the same modes as the player from one replicated byte. Tested on a dedicated server, a listen server and split screen.

For your project: works with the Character Movement of any project, with a short guide for the Game Animation Sample (GASP) and for Lyra. Debug drawing, live tuning of a mode from the console, stat Viewcraft for the cost in your own game, and player settings (field of view, shake strength, automatic turns off) saved in one node.

Measured by the demo's probe on 1,503 frames (UE 5.8), not promised:

  • 0 frames with the camera inside a wall, 0 with a wall between the camera and the character

  • 0 times a wall pulled the camera in by more than 5 cm at once, corners included (67 times without the prediction)

  • 0.05 to 0.11 ms a frame on the game thread, measured with the machine busy with other work

  • Over a dedicated server at 150 ms and 5% loss, the spectator saw the same 19 modes as the player, in the same order

What it does not do: lock-on, first person and the shoulder side are local, so a game that needs them on other machines sends them itself. In split screen an occluder is hidden in its half at once instead of dithering. It does not replace the Gameplay Cameras plugin of the engine; it is its own camera.

Every class is open to Blueprint and the C++ source ships. No other plugin needed. A packaged Windows demo lets you try it before buying. Documentation: https://apps.tessaroapps.com/viewcraft/docs/ (start in 5 steps, then every setting). Support by email: contato@tessaroapps.com.

PS: Feature requests are accepted!