# Viewcraft Gameplay camera for third and first person, in one plugin. It lives in the player camera manager, so the pawn needs 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, speed effects, look ahead, follow. The camera stacks the modes in play and blends them, so a mode interrupted halfway never jumps. - **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). 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. Other pawns and whatever hangs on the character never push it in. A camera shake stops at the wall too. - **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 a swap 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, the way a survival horror or a platformer frames a room. - **Procedural motion**: head bob, landing dip, roll into turns, breathing, lean around corners, and camera shake presets. - **Other genres** from the same camera: strategy and build views with a free pivot, edge pan and zoom to the cursor; side-scroller and isometric with the yaw held and the camera kept inside the level. - **Camera Volumes** in the level put a mode on, turn the view to a point of interest, hand the view to a rig or keep the camera inside a box. - **Tools**: debug drawing, live tuning of the mode in use from the console, player settings saved and loaded in one node. - **Multiplayer**: the camera runs only on the machine that owns the view. A spectator sees the same modes as the player, from one replicated byte. - **Player settings** for the options menu: field of view, shake strength (0 is off), automatic view turns off. No other plugin is needed. Everything here is reachable from Blueprint. ## Start in 5 steps 1. Enable **Viewcraft** and restart the editor. 2. In your Player Controller, set **Player Camera Manager Class** to `BP_VWC_PlayerCameraManager` (in `/Viewcraft`). It already holds a third person and a first person mode set. 3. Remove the Spring Arm and Camera components from your character, or leave them: with a camera manager that computes the view, they are not used. 4. Press Play. Walk, sprint, crouch and jump: the camera changes mode by itself. 5. For aiming, call **Set Mode Override** with the key `Aim`, `DA_VWC_Aim` and priority 10 when the button goes down, and **Clear Mode Override** with `Aim` when it goes up. For first person, call **Set First Person View**. Everything the camera does is on the camera manager. In Blueprint, get it with **Get Player Camera Manager** and cast to `VWCPlayerCameraManager`. ## How the camera works Every frame, on the machine that owns the view: 1. **Which mode.** The highest priority override wins (aim, lock-on, a volume, your cutscene). With none, the mode set of the view (third or first person) picks from the movement state. With no mode set, the mode from **Set Camera Mode**. 2. **Blend.** A new mode goes on top of the stack and blends in over its **Blend Time**. All values blend, eased at both ends. 3. **Pivot.** The point the camera orbits: the actor location plus the **Pivot Offset**, then the lag and the look ahead. 4. **View.** The control rotation, after the lock-on, a volume's point of interest, the soft lock and the follow had their turn. 5. **Arm.** The shoulder offset, then the arm back from it, scaled by the pitch, the zoom and the collision. 6. **Fade.** What the camera goes through and stands between it and the character fades out. The character itself fades when a wall pushes the camera into it. Then the engine's camera modifiers run (shakes, camera animations), and the shake guard keeps them out of walls. ## Modes (VWCCameraMode) A Data Asset. Make one with **right click > Miscellaneous > Data Asset > VWCCameraMode**, or duplicate one of `/Viewcraft/Modes`. | Field | What it does | |---|---| | Pivot Offset | Point the camera orbits, from the actor location in the actor's yaw frame. | | Shoulder Offset | Sideways and up shift of the arm start, in camera space. Y to the right puts the camera over the right shoulder. | | Arm Length | Distance from the arm start back to the camera. 0 is first person. | | Field Of View | Horizontal, in degrees. | | Pitch Min / Pitch Max | How far down and up the player can look. The same value in both holds the pitch, as in a top down view. | | Blend Time | Seconds to blend into this mode. | | Lock On / Lock On Turn Speed | The view turns to the lock-on target while this mode is on. | | Speed For Full Effect, Arm Length At Full Speed, Field Of View At Full Speed | More arm and field of view with speed, for vehicles. | | Look Ahead Time / Max Distance | The pivot runs ahead of where the target goes. | | Follow Yaw Speed / Delay | The view turns by itself to behind where the target goes, after the player has left it alone for the delay. Never while the target walks towards the camera, and never for a pawn that turns with the controller. | | Follow Pitch Speed / Rest / Slope Scale | The pitch goes back to rest by itself, tilted with the slope: up a ramp, down a ramp, into a fall. | | Arm Length Looking Up / Down, Field Of View Looking Up / Down | Added as the view looks all the way up or down. Negative arm looking up keeps the camera off the ground. | | Pivot Lag Speed / Rotation Lag Speed | The lag of a spring arm. 0 sticks. | | Screen Offset | Where the pivot sits on the screen, -0.5 to 0.5 of the width and height. (0.15, 0) puts the character a little right of the middle. | | Dead Zone | How far, in cm, the target moves sideways and up or down before the camera follows. | | Bob Vertical Cm / Bob Side Cm / Bob Stride Cm / Bob Speed For Full | Head bob: up and down twice a stride, side to side once, at full strength from that ground speed. | | Landing Dip Per 1000 / Landing Dip Max Cm | How far the view dips on landing, per 1000 cm/s of fall, and the deepest it goes. | | Turn Roll Per 100 / Turn Roll Max | Roll into a turn, per 100 degrees a second of turning, and the most it rolls. | | Idle Sway Degrees | Breathing while standing, four seconds a breath. | | Fixed Yaw / Fixed Yaw Degrees | The view keeps one world yaw and the player cannot turn it. With Pitch Min = Pitch Max it is a side-scroller or an isometric view. | | First Person Field Of View / Scale | For the meshes tagged `IsFirstPerson` (arms and weapon of the first person template, 5.6 and up). 0 leaves them on the world's field of view. | Modes are assets every player shares. To change one at runtime (a zoom slider, a weapon with its own view), call **Copy Camera Mode** and change the copy. The asset on disk and the other players stay as they were. ## Mode sets (VWCCameraModeSet) The modes the camera picks by itself. One set for third person and one for first person give the same behaviour in both views. | Field | When | |---|---| | Default Mode | Everything the others do not cover. | | Sprint Mode | Ground speed from **Sprint Speed** (550). Goes out 10% under it, so a speed on the line does not flicker. | | Crouch Mode | Crouched. | | Falling Mode | In the air for longer than **Falling Delay** (0.3 s), so a step down does not move the camera. | | Swimming Mode / Flying Mode | The Character Movement is swimming or flying. | | Custom State Modes | A map from a name to a mode, for states of your own. | Order: custom state, swimming, flying, falling, crouching, sprinting, default. A mode left empty falls through to the next. For a state the Character Movement cannot know, there are two places to tell it: - On the pawn: add the **VWC Movement State Source** interface to the pawn Blueprint and implement **Modify Viewcraft Movement State**. Set only what you know on the state pin with **Set Members in VWCMovementState**; what you leave alone stays as the camera read it. Each pawn tells its own, so a horse and a climber need no shared code. - On the camera manager: override **Modify Movement State** on your camera manager Blueprint. It runs after the pawn, for rules that cover every pawn. Either way, set **Custom State** to `Climbing` while the character climbs and put a `Climbing` entry in **Custom State Modes**. To pick some other way altogether, make a Blueprint child of the mode set and override **Pick Mode**. ### With the Game Animation Sample The Game Animation Sample's character keeps its gait (walk, run, sprint) and stance in variables of its own, and moves at speeds the default sprint line does not match. To drive Viewcraft from them: 1. In your game mode, or the controller Blueprint, set **Player Camera Manager Class** to `BP_VWC_PlayerCameraManager`. 2. On `CBP_SandboxCharacter`, delete or deactivate its camera and spring arm. Viewcraft places the view itself. 3. Add the **VWC Movement State Source** interface to `CBP_SandboxCharacter` and implement **Modify Viewcraft Movement State**: **Sprinting** from `Gait == Sprint`, **Crouching** from `Stance == Crouch`, and **Custom State** `Aim` while your aim input is held. 4. In `DA_VWC_ThirdPersonSet`, or a copy of it, add `Aim` to **Custom State Modes** with `DA_VWC_Aim`. 5. Add a **VWC View Target** component to the character for the pivot height and the vehicle and spectator features. Lyra keeps its camera in a camera component on the hero pawn and its own camera manager on the controller. Set **Player Camera Manager Class** on your Lyra controller Blueprint to `BP_VWC_PlayerCameraManager` and remove the camera component from the hero, and the same interface tells Viewcraft the hero's state. ## Overrides **Set Mode Override (Key, Mode, Priority)** puts a mode on top of what the camera would pick. The highest priority wins, the newest among equals. **Clear Mode Override (Key)** takes it off. The keys the camera uses itself: | Key | Priority | Set by | |---|---|---| | `VWCLockOn` | Lock On Priority (50) | A lock-on, with **Lock On Mode** | | `VWCVolume` | The volume's Priority (10) | A Camera Volume | **On Camera Mode Changed (New Mode, Previous Mode)** fires when the camera starts blending to another mode. **Get Camera Mode** is the mode it is in or going to. ## Lock-on 1. Add a **VWC Lock On Target** component to anything that can be locked on, at the point the camera should look at (chest, a socket). 2. Call **Start Lock On**: the best target in reach (**Lock On Max Distance**, 2000), inside the cone (**Lock On Max Angle**, 45 degrees to each side) and not behind a wall. The middle of the view counts twice as much as the distance. 3. **Switch Lock On Target (-1 or 1)** goes to the next one to the left or to the right. **Stop Lock On** lets go. The lock lets go by itself when the target is destroyed, its component is switched off (**Can Be Locked On**, for a dead enemy), it is further than **Lock On Break Distance** (2500), or it stays behind a wall for **Lock On Lost Sight Time** (1.5 s). Another pawn in between does not hide it. The look point travels from one target to the next in **Lock On Switch Ease Time** (0.35 s). **Can Lock On Target (Target)** is a Blueprint event with the last say: return false for a friend, a target of another team, one behind a shield. A target that turns false while locked lets go. **Soft lock**: with **Soft Lock Turn Speed** above 0, the view leans towards the target nearest the middle of the screen (within **Soft Lock Max Angle**, 12 degrees) at that many degrees per second at most, while the player is not turning it. **Get Soft Lock Target** says who. Lock-on is local. A game that needs the target on the server (damage, AI) listens to **On Lock On Target Changed** and sends it. ## Collision and fade | Setting | Default | What it does | |---|---|---| | Collision Enabled | on | Walls push the camera in. | | Probe Radius | 15 | Radius of the swept sphere. It has to cover the corners of the near plane. | | Prediction Enabled / Prediction Time | on / 0.3 s | Shortens the arm early for a wall the camera will meet if the player keeps moving and turning like this. | | Pull In Speed / Push Out Speed | 12 / 4 | How fast the arm shortens for a coming wall and grows back when it is gone. | | Ignore Pawns | on | Other pawns do not push the camera in. Their capsules block the camera channel by default in the engine. | | Ignored Actor Tag | `CameraIgnore` | Actors with this tag do not push the camera in either: thin props, foliage, glass. | | Keep Shake Out Of Walls | on | A shake or any camera modifier stops at the wall too. Only on the view this camera computed, never on a cutscene camera. | What hangs on the view target (a weapon, a backpack, a rider) and what it hangs on are part of it: they never push the camera in. **Fade**: what the camera goes through (pawns and actors with the tag) fades out while it stands between the camera and the character, in **Occluder Fade Time** (0.2 s), and back after. The opacity goes to Custom Primitive Data slot **Fade Data Index** (0) of every primitive of the actor. `M_VWC_FadeExample` in `/Viewcraft/Materials` shows a material that dithers with it. A material that does not read it sees the actor hidden at the end of the fade (**Hide Fully Faded Occluders**). It is hidden in this player's view only, through the controller's hidden components list, never with the actor or component flags. So on a listen server the clients still see it, and in split screen the other player does too. In split screen the dither would show on both halves, so there the camera hides the actor in its own half at once, without dithering, and its shadow stays because the other half still sees the actor. With one view on the machine the shadow goes with the actor. **On Actor Fade Changed** fires for a fade done some other way. The character itself fades from **Body Fade Start Distance** (120 cm) down to 50 cm, where it is hidden from its owner. A camera closer than 30 cm to the capsule counts as under 50 cm whatever the arm, so a wall that pins an over the shoulder camera against the shoulder hides the body too. What the project already hid from the owner, or shows only to the owner (first person arms), is left alone. When the view goes to another actor (a cutscene camera, another pawn) or the camera manager ends, everything it faded or hid comes back. ## Shoulder and zoom - **Swap Shoulder** puts the camera over the other shoulder (the mode's Shoulder Offset mirrored), in **Shoulder Swap Time** (0.25 s). It returns false when a wall on that side leaves less than **Shoulder Room Needed** (60%) of the offset. - **Set Shoulder Side (1 or -1)** and **Get Shoulder Side**. - **Auto Swap Shoulder At Walls**: with a wall close on the side of the shoulder and room on the other, the camera goes over the other shoulder by itself, and back when the first side is clear. On in `BP_VWC_PlayerCameraManager`. - **Add Zoom Input (Steps)**: each step multiplies or divides the arm by 1 + **Zoom Step** (0.12), between **Zoom Min Scale** (0.5) and **Zoom Max Scale** (1.6). **Set Zoom Scale** and **Get Zoom Scale**. Third person only. ## First person **Set First Person View (true)** switches to the first person mode set, blending. Under 50 cm of arm the body is hidden from its owner, other players still see it. On 5.6 and up, a mode with **First Person Field Of View** sends it and **First Person Scale** to the meshes tagged `IsFirstPerson`, so the arms of the first person template keep their own view while the world one changes. `DA_VWC_FirstPerson` uses 70 for the arms and 90 for the world. The view switch is local. A game where others need to know replicates its own flag and calls **Set First Person View** on the owner. ## Vehicles and mounts Add a **VWC View Target** component to the pawn and give it a **Third Person Mode Set** (and a first person one if it has a cockpit). While the player views that pawn, its sets take the place of the camera manager's. `DA_VWC_VehicleSet` and `DA_VWC_MountSet` are ready to use. Taking or leaving a pawn: the pivot travels from one to the other in **View Target Blend Time** (0.5 s), and the view keeps looking where it was (**Keep View Rotation On Pawn Change**). A new pawn further than **Max View Target Travel Distance** (1500 cm) is a spawn or a teleport, and the camera cuts. After a teleport of your own, call **Snap Camera**. An engine blend (**Set View Target With Blend**) works too: the pawn being left keeps the last view it had while the engine blends. A rider attached to a mount that stays possessed uses **Set Mode Override** with `DA_VWC_Mount`. ## Framing - **Screen Offset** (in the mode) composes the shot: the camera stays on the arm and only turns, so the character lands where you put it on the screen. Aim traces follow the middle of the screen as usual. - **Dead Zone** (in the mode) is a box, in cm, the target moves in before the camera follows. A hop or a step aside leaves the view still. Towards and away from the camera it always follows. - **Group framing**: **Add Framing Target (Actor, Weight, Radius)** keeps that actor in the shot with the view target. The pivot moves towards the middle of the group (**Group Pivot Weight**, 0.5) and the arm grows until everyone fits (**Group Framing Padding** 1.2, up to **Group Max Arm Length** 1500 cm), eased at **Group Framing Ease Speed**. With **Group Turn Speed** above 0 the view also turns to the middle of the group while the player is not turning it. **Remove Framing Target** and **Clear Framing Targets** take them off; a destroyed actor leaves by itself. ## Cameras of the level (VWCCameraRig) Drop a **VWC Camera Rig** in the level. | Setting | What it does | |---|---| | Placement | **Fixed**: the camera stands where the rig is. **Rail**: it rides the rig's spline to the point nearest the view target, **Rail Lead Cm** ahead, easing at **Rail Follow Speed**. | | Aim | **Look At Target** (at **Look At Offset** on the target, easing at **Aim Follow Speed**) or **Fixed Rotation**. | | Field Of View | Of this camera. | | Blend Time | 0 cuts, like the fixed cameras of a survival horror. Above 0 it blends from the view on screen. | | Control Follows Camera | Forward on the stick is up on the screen while this rig has the view. | Give a rig to a Camera Volume (**Rig**) and it takes the view while the view target is inside. Or call **Set Camera Rig (Rig, Blend Time)** on the camera manager, which wins over volumes. **Set Camera Rig (None)** takes back the rig set by hand: the view goes to the orbit camera, or to the rig of the volume the view target stands in. The blend time given by hand is for that change only. **Get Camera Rig** says which one has it. While a rig has the view, nothing of the orbit hides the body or fades occluders, and the shake guard stays off. ## Procedural motion The motion of the mode (bob, landing dip, turn roll, breathing) plays on top of the view. `DA_VWC_FirstPerson` has all four, small. **Set Lean (-1 to 1)** leans the view: a roll of **Lean Angle** (10 degrees) and a step aside of **Lean Offset Cm** (35), eased at **Lean Speed**. The step aside stops at a wall, and the roll shrinks with it. **Get Lean** says where it is. **Shake presets**, C++ classes ready for **Start Camera Shake**: `VWCCameraShake_HitLight`, `VWCCameraShake_HitHeavy`, `VWCCameraShake_Explosion`, `VWCCameraShake_Landing`. A Blueprint child of `VWCCameraShake` tunes its own: amplitude in cm and degrees, frequency, duration. One shake of a kind plays at a time, so a burst of hits restarts it instead of stacking. The player setting **Procedural Motion Scale** (0 to 1) turns all of this down, 0 is off. The step aside of a lean is gameplay and keeps its size. ## Other genres - **Strategy and build views**: **Set Free Pivot (true)** makes the camera orbit a point of its own instead of the view target, starting where the pivot is. **Add Pan Input (X right, Y forward)** moves it at **Pan Speed** (1500 cm/s, more when zoomed out), the mouse at the edge of the screen pans too (**Edge Pan**, **Edge Pan Margin Pixels** 20), zooming moves towards the point under the mouse (**Zoom To Cursor**), and **Free Pivot Bounds** keeps it inside the map. **Focus Free Pivot On (Actor, Seconds)** takes it to a unit. `DA_VWC_Strategy` is a mode for it. - **Side-scroller and isometric**: a mode with **Fixed Yaw** holds the view at **Fixed Yaw Degrees**, and Pitch Min = Pitch Max holds the pitch. `DA_VWC_SideScroller` (looking along Y, with a dead zone) and `DA_VWC_Isometric` (45 degrees) are ready. A Camera Volume with **Confine Camera** keeps the camera inside its box, so it never shows past the edge of the level. - **Top down**: `DA_VWC_TopDown`, the pitch held at -55. ## Tools - `Viewcraft.Debug 1` in the console draws the pivot, the arm (red where a wall stopped it), the dead zone, the middle of a group and the active volume, and prints the mode, the arm, the field of view, the zoom, the shoulder, the lock-on target and the rig on screen. Not in Shipping builds. - `Viewcraft.Tune` lists every value of the mode in use. `Viewcraft.Tune ArmLength 250` changes one while playing. In the editor the change goes into the mode asset itself, marked to save, so you tune it in Play In Editor and save it when it feels right. - `stat Viewcraft` in the console shows what the camera update costs each frame and how many sweeps and traces it took. It works in Development builds, like the engine's own stats. - **Save Player Settings (Slot)** and **Load Player Settings (Slot)** keep the options menu: field of view, shake, procedural motion, automatic turns, zoom and shoulder. ## Camera Volumes Drop a **VWC Camera Volume** in the level and size its box. While the view target is inside: - its **Mode** goes on as an override with its **Priority**; - with a **Look At Actor**, the view turns towards it at **Look At Turn Speed** whenever the player is not turning the view. A boss, a door, a view over a valley. - with a **Rig**, that camera of the level takes the view; - with **Confine Camera**, the camera stays inside the box. The highest priority volume wins where volumes overlap. **Volume Enabled** turns one on and off at runtime. `DA_VWC_Interior`, `DA_VWC_Ledge` and `DA_VWC_BossArena` are made for volumes. ## Multiplayer - The camera runs only on the machine that owns the view. A dedicated server never runs it (measured: 0 updates in a whole match). - **Spectators**: the camera manager of a player watching someone else's pawn shows the same modes as the owner. The owner's camera writes one byte on the **VWC View Target** component of its pawn (first person, in the air, and which of **Spectator Modes** is on, up to 63), and the server passes it on, only when it changes. The fall comes from the owner and not from the copy of the pawn on the spectator's machine, which leaves the ground for a few frames at each correction when that machine is busy. Put the overrides a spectator should see (aim, lock-on) in **Spectator Modes**, the same list in the same order on every machine. **Is Spectating** says when. - **Listen server**: the host's camera runs for the host only. It ran 0 times for the client's controller in the test, and what it fades or hides stays on the host's screen. - **Split screen**: each local player has its own camera manager and uses its own half of the screen for framing. What one camera hides is hidden in that half only. The body fade, when a wall pushes the camera into the character, is off in split screen, because the other half would see that body half transparent. The body is still hidden from its own camera under 50 cm. One player watching the other reads the byte the other writes, with no network call. - **Get Aim Trace (Controller, ...)** in the Viewcraft library is where the middle of the screen points, the same in third and first person. It starts at the depth of the pawn, so what stands between a third person camera and the character is not hit. It works on the server too, from where the engine already knows each client's camera is. ## Player settings For the options menu, on the camera manager: | Setting | What it does | |---|---| | Player Field Of View Offset | Added to the field of view of every mode, -40 to 40. First person arms keep their own. | | Shake Scale | Strength of every camera shake started from now on, 0 to 2. 0 starts none at all, as motion sickness settings ask. A shake already playing finishes as it began. | | Procedural Motion Scale | Head bob, landing dip, turn roll, breathing and the roll of a lean, 0 to 1. 0 is off. | | Automatic View Turns | Off, the view never turns by itself: no follow, no soft lock, no point of interest. | | Modes Set Pitch Limits | Off, the game keeps its own pitch limits. | ## Shakes and camera animations Shakes play as usual (**Start Camera Shake**, **Client Start Camera Shake**), scaled by **Shake Scale**. Camera animation sequences play with the engine's **Play Camera Animation** node of the Engine Cameras subsystem. Both are camera modifiers, so they run after Viewcraft and stay out of walls. ## Shipped content In `/Viewcraft/Modes`: | Mode | For | |---|---| | `DA_VWC_Explore` | Walking. Comes in 150 cm looking up. | | `DA_VWC_Sprint`, `DA_VWC_Crouch`, `DA_VWC_Falling` | The states of the third person set. | | `DA_VWC_Swimming`, `DA_VWC_Flying` | Swimming and the flying movement mode, with lag. Flying follows the pitch of the flight. | | `DA_VWC_Aim` | Over the shoulder, 150 cm, 55 degrees. | | `DA_VWC_LockOn` | Over the shoulder, turns to the target. | | `DA_VWC_FirstPerson`, `DA_VWC_FirstPersonCrouch` | First person, 90 degrees for the world and 70 for the arms. The standing one bobs, dips on landing, rolls into turns and breathes. | | `DA_VWC_Vehicle`, `DA_VWC_Mount` | Further back, more arm and field of view with speed, look ahead, follow. | | `DA_VWC_Interior`, `DA_VWC_Ledge`, `DA_VWC_BossArena` | For Camera Volumes: a tight room, a ledge over a drop, a big target from further back. | | `DA_VWC_TopDown` | The pitch held at -55 from above. | | `DA_VWC_SideScroller`, `DA_VWC_Isometric` | Yaw and pitch held, with a dead zone. | | `DA_VWC_Strategy` | High and tilted, for Set Free Pivot. | | `DA_VWC_Cinematic` | Composed off center, with a dead zone and lag. | Mode sets: `DA_VWC_ThirdPersonSet`, `DA_VWC_FirstPersonSet`, `DA_VWC_VehicleSet`, `DA_VWC_MountSet`. Camera manager: `BP_VWC_PlayerCameraManager`. ## The demo A packaged Windows demo is a separate download: https://github.com/filipetessaro/viewcraft-demo/releases/latest. Its level is built by code: an open area, a 150 cm corridor with two corners and a roofed leg, a small room, two lock-on targets, a cart and a banner the camera fades. A village dresses it, the Medieval Village MegaKit by Quaternius (quaternius.com, CC0), and the character is the mannequin of the engine templates. Both are in the demo only, not in the plugin. Keys: WASD and mouse, Shift to sprint, Space to jump, C to crouch, right mouse to aim, Tab to lock on, Q and E to switch target, V for first person, F to take or leave the cart, R to recenter, the mouse wheel to zoom, T to swap shoulder. A gamepad works too, the keys are on screen. ## Measured The demo has a probe that walks the character through the level and measures every frame. On 5.8, 1,503 frames: - 0 frames with the camera inside a wall, 0 with a wall between the camera and the character. With the collision off, 74 frames in the wall, which shows the ruler works. - A 40 cm shake in the 150 cm corridor: 0 frames in the wall (24 without the guard). - 0 times a wall shortened the arm by more than 5 cm at once, at the corners included. Without the prediction it is 67 times and up to 91 cm. - Cost: a median of 0.05 to 0.11 ms per frame on the game thread, measured with the machine busy with other work (CPU at 80%), and up to 0.15 ms with it at 94%. The room with lock-on costs the most. About 80% of it is the sweeps of the collision and its prediction; the prediction alone is 0.01 to 0.03 ms. `stat Viewcraft` shows the cost and the number of sweeps in your own game. - Dedicated server and one client at 150 ms and 5% loss: 0 frames in the wall, the spectator saw the same 19 modes in the same order as the player. - Listen server with a spectator client: the host's camera ran 0 times for the client, and the banner it faded and hid never showed as hidden on the client. - Split screen with two players: the banner the first one's camera hid stayed visible on the other half, with no dither on it, and the second camera stayed on its own character. ## Known limits - In split screen an occluder is hidden in its half at once instead of dithering, and its shadow stays. - If the game puts a component in the controller's **Hidden Primitive Components** list while the camera has it hidden there too, the camera takes the entry out when the fade ends. - Lock-on, the first person view and the shoulder side are local: a game that needs them on other machines sends them itself. - The camera writes the control rotation for lock-on, follow, soft lock and points of interest. A pawn that turns with the controller turns with them. ## Support contato@tessaroapps.com. We answer in one or two working days.