# Scene Capture Components

## Scene Capture Component

The Scene Capture Component of Unreal Engine is used to capture the scene similar to a virtual Camera and render that to texture that can be later used in Composition layers or anywhere else like a normal texture. There are two use cases based on where this component can be attached, It can be attached to

1. A CG Layer or a CG Matte of the Composure system
2. An Actor inside the Level

CameraTwin supports both use cases as they have some differences in terms of rendering result depending on your rendering settings and features.

### Composition Scene Capture Component

The Scene Capture Component is already attached to the CG Layer and CG Matte Composition Layer Element templates, requiring no further setup for the user. You can find an example use case in our ***Composition Example*** Level in our Plugin's Content Folder.

<figure><img src="https://3763251240-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9BAa74uZVvvtnO0Rq9Vh%2Fuploads%2Fgit-blob-03ecb5ae0cd932a5c2dc68ca732082092c4450a9%2FCompositionLayerSceneCaptureComponent.png?alt=media" alt=""><figcaption><p>Composition Layer - Scene Capture Component</p></figcaption></figure>

{% hint style="info" %}
We have observed that the Scene Capture Component attached to a Composition Layer Element results in different rendering output compared to the Camera Actor Preview and the Viewport. These differences are mostly observed when Temporal rendering features are in place and/or Lumen , Ray tracing features. In that case we suggest you try to use the Level Actor Scene Capture Component approach since it handles all rendering features better.
{% endhint %}

### Level Actor Scene Capture Component

The Scene Capture Component attached to a Level Actor a most probably the Camera Actor is another possible setup.

<figure><img src="https://3763251240-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9BAa74uZVvvtnO0Rq9Vh%2Fuploads%2Fgit-blob-4de5cc75d65cc798badb88b34bed868834d74a50%2FSceneCaptureLevelActorComponent.png?alt=media" alt="" width="504"><figcaption><p>Level Actor - Scene Capture Component</p></figcaption></figure>

In that case in order to use the Scene Capture with the Composure elements you need to first assign a Render Target Texture to the Scene Capture

<figure><img src="https://3763251240-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9BAa74uZVvvtnO0Rq9Vh%2Fuploads%2Fgit-blob-ad4e9fc0ed3c852e83e4a98c2bbb278cf1f649de%2FRenderTargetTextureSceneCapture.png?alt=media" alt="" width="498"><figcaption><p>Render Target Texture of Scene Capture</p></figcaption></figure>

and use the same Render Target Texture as input texture in the Composition

<figure><img src="https://3763251240-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9BAa74uZVvvtnO0Rq9Vh%2Fuploads%2Fgit-blob-76b844ad3fb1c20bafd2eda935dc3bc2ed24f73e%2FRenderTargetTextureCompositionInput.png?alt=media" alt="" width="495"><figcaption><p>Render Target Texture as input in the Composition</p></figcaption></figure>
