---
title: "Set up camera transforms and lens distortion"
canonical: "https://help.vicon.com/space/Unreal5Plugin113/1152057362/Set%20up%20camera%20transforms%20and%20lens%20distortion"
format: markdown
---
This page covers how to set up camera transforms and lens distortion.

> Macro (toc)

## Prerequisites

To set up camera transforms and lens distortion, ensure you have set up and installed the following components:

- 1 x PC with Vicon software (Shogun) installed
- 1 x PC with Unreal Engine 5 (UE5) installed
- The PCs are connected via LAN
- Vicon Live Link Datastream plugin is installed and enabled on Unreal Engine 5 (see [Install and set up Live Link](https://vicon-help.atlassian.net/wiki/spaces/Unreal5Plugin113/pages/1152057356))
- SDI set up in Vicon software and Unreal Engine
- A UE5 project is open
- The Legacy Composure plugin is installed and enabled.
- A Live Link source has been created and is currently connected to UE5.

> ⚠️ **Important**  
> ⚠️ Ensure that the Legacy Composure plugin is enabled. Note that the Composure plugin is **not** supported.

> Macro (anchor)



## Set up camera tracking in Unreal Engine

1. Open UE5 and open a project.
2. In the **Actor Placement** panel, search for **CineCamera**, add it to the scene, and zero out the position of the camera.
3. In the **World Outliner,** select **CineCameraActor** and then select **Add Component**.
4. Find and add a component called **Live Link Controller.**
5. Select the new **LiveLinkComponentController** and in the **Subject Representation**, select the name of the camera subject.
6. In the **Camera Role** field, select **Live Link Vicon Camera Controller.**
7. In the **Component to Control** dropdown select **CameraComponent.**
8. Select **CineCameraActor** and in **Filmback > Sensor Width/Height **set the width and height to match the camera's sensor size.

> ✅ **Tip**  
> ✅ The **Output Log** notifies you if the aspect ratio did not work for automatically setting the focal length.

> Macro (anchor)



## Set up lens distortion on a CineCameraActor in Unreal Engine

> ⚠️ **Important**   
> ⚠️ Ensure you have completed the previous section ([Set up camera tracking in Unreal Engine](https://vicon-help.atlassian.net/wiki/spaces/Unreal5Plugin113/pages/1152057362/Set+up+camera+transforms+and+lens+distortion#SetupCameraTrackingInUE)).

1. Select the **CineCameraActor**, and in the **Details** panel add a **Lens** component.
2. In the **Distortion Source** drop-down, select **Live Link Lens Subject**.
3. At the top of the **CineCameraActor** section, click** Live Link Component Controller** section, and in **Lens Role > Component to Control**, set the **Component Picker** to the **Lens** component.
4. Select the **Lens** component, go to **Distortion**, and select the **Apply Distortion **checkbox.

## Set up lens distortion in Composure in Unreal Engine

> ⚠️ **Important**   
> ⚠️ Ensure you have completed the previous sections ([Set up camera tracking in Unreal Engine](#SetupCameraTrackingInUE) and [Set up lens distortion on a CineCameraActor in Unreal Engine](#SetULensCineCameraActorUE)).

On the **Composure Layer **tab, complete the following steps for each CG Layer.

1. Select a CG Layer.
2. In the **Details** panel, expand **LensDistortion** and select **Apply Distortion**.
3. Set ** Lens Component **to the CineCamera Lens created in the previous section.

For information on how to add actors to CG Layers, see [Real-Time Compositing Tools](https://docs.unrealengine.com/5.0/en-US/real-time-compositing-tools-in-unreal-engine/) in the *Unreal Engine documentation*.

> ✅ **Tip**  
> ✅ After you have followed these steps, if the props are misaligned with their real world counterparts when you view the final composure, go back to Shogun and recalibrate the SDI. This realigns the final composure.