# Tutorials

### CameraTwin Video Tutorial Series

<table data-card-size="large" data-view="cards" data-full-width="false"><thead><tr><th></th><th data-hidden></th><th data-hidden></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-type="content-ref"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td>Start Virtual Productions in Unreal Engine with just your smartphone 🎥</td><td></td><td></td><td><a href="/files/dwvYOerbcUcxXMloepBA">/files/dwvYOerbcUcxXMloepBA</a></td><td><a href="https://youtu.be/NtcKTjgs-Hg?si=x3k2h4Afnfxs5z9w">https://youtu.be/NtcKTjgs-Hg?si=x3k2h4Afnfxs5z9w</a></td><td><a href="https://youtu.be/0r7hhMgaIrE">https://youtu.be/0r7hhMgaIrE</a></td></tr></tbody></table>

## Examples

### Typical 2 Layer Composition Setup

This is a common setup of a 2 layer composition. The first layer has the Camera Input stream which is masked by chroma-keying and is rendered on top of the second layer, the CG layer, which renders the virtual world based on the Camera Component of BP\_CT\_CameraActor. While this example focuses on a 2 layer composition, you can create compositions with multiple layers by adding more layers and altering the Main Composition material to support them.\\

**Steps:**

1. Add a BP\_CT\_CameraActor to your Level [using QuickPlace](https://www.youtube.com/watch?v=KBDF1_vomok\&ab_channel=RealTwin) or [from the Plugin's Content Folder](https://www.youtube.com/watch?v=wHLrAkhDNU8\&ab_channel=RealTwin)
2. Go to Window and search for Composure ([video](https://www.youtube.com/watch?v=Rt4nm4wdb9Y\&ab_channel=RealTwin))
3. Right-click inside the Composure window and Create New Comp ([video](https://www.youtube.com/watch?v=CCW0L1kpdZA))
   1. Open ALL CLASSES in the pop up window
   2. Search and select the BP\_CT\_2L\_Composition
4. Right-click on the Composition you just created ([video](https://www.youtube.com/watch?v=f4rhmwfJMX8))
   1. Select the Add Layer Element
   2. Open ALL CLASSES in the pop up window
   3. Search and select the BP\_CT\_InputStreamElement
5. Right-click again on the Composition ([video](https://www.youtube.com/watch?v=WYsrM2uYGIA))
   1. Select the Add Layer Element
   2. Select the common CG Layer
6. Make sure that inside the Transform Passes of the composition under the TransfromPass\_0->Input Elements ([video](https://www.youtube.com/watch?v=FeqF7YOsiXU)) :
   1. The media label has the name of the input stream composition layer (default: layer\_element1)
   2. The cg label has the name of the CG Layer (default: cg\_element1)

The setup explained above can also be found in the Plugin’s Content folder and specifically in the level Examples/Composition Example.

### Plane - Static Mesh Setup

An alternative approach, to the composition setup, would be to add a Plane or any StaticMesh Actor and use it as a projection plane or surface for the incoming video stream. For simplicity the steps below will assume that a Plane is used as the projection surface.\\

**Steps:**

1. Add a BP\_CT\_CameraActor to your Level [using QuickPlace](https://www.youtube.com/watch?v=KBDF1_vomok\&ab_channel=RealTwin) or [from the Plugin's Content Folder](https://www.youtube.com/watch?v=wHLrAkhDNU8\&ab_channel=RealTwin)
2. Add a Plane actor to your level via Shapes->Plane ([video](https://www.youtube.com/watch?v=w8CfJ7mk98M))
3. Set the Material of the Plane Actor to M\_CT\_InputStream ([video](https://www.youtube.com/watch?v=JW-hZY8JXBM))
4. Add a Live Link Controller component to the Plane Actor ([video](https://www.youtube.com/watch?v=QXukvSD6yo4))
5. With the CameraTwin - Live Link Source connected ([video](https://www.youtube.com/watch?v=KCx_c2v90-U))
   1. Select the Video Stream Subject in the Live Link Controllers
   2. Select the Live Link Camera Twin Mesh Controller in the Role Controllers

### Chroma-key Setup

This is a typical setup workflow designed for chroma-keying setups.

1. Prepare your virtual setting in Unreal Engine
2. Add a BP\_CT\_CameraActor to your Level [using QuickPlace](https://www.youtube.com/watch?v=KBDF1_vomok\&ab_channel=RealTwin) or [from the Plugin's Content Folder](https://www.youtube.com/watch?v=wHLrAkhDNU8\&ab_channel=RealTwin)
3. Setup the 2 layer composition
4. \[Optional] setup your Sequence
5. Connect to your CameraTwin Source via the Live Link window
6. Select your composition output and start streaming via the CameraTwin Composition Streamer output, which will create and NDI source, or open the preview window
7. You are now ready to shoot!\\

### AR Composition Setup

This is a typical setup workflow for Augmented Reality (AR) compositions.

1. In the Project Settings got to PostProcessing -> Enable alpha channel support in post processing (experimental) and set it to “Allow through tonemapper”
2. Prepare your virtual setting in Unreal Engine
3. Add a BP\_CT\_CameraActor to your Level [using QuickPlace](https://www.youtube.com/watch?v=KBDF1_vomok\&ab_channel=RealTwin) or [from the Plugin's Content Folder](https://www.youtube.com/watch?v=wHLrAkhDNU8\&ab_channel=RealTwin)
4. Setup the 2 layer AR composition similar to the normal 2 layer composition setup
5. \[Optional] setup your Sequence
6. Connect to your CameraTwin Source via the Live Link window
7. Select your composition output and start streaming via the CameraTwin Composition Streamer output, which will create and NDI source, or open the preview window
8. You are now ready to shoot!


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.realtwin.org/cameratwin/tutorials.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
