# ArchViz Camera

ArchViz Camera enables you to create architecture rendering for 2-point perspective. It works by altering camera pitch and offset so that lines in the scene manage to be parallel while maintaining the camera's pivot point (center point).

<figure><img src="https://1253177398-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIc7aRtmwmEkkqEJZORmC%2Fuploads%2FMPCjuxmrstlvhMiNcDCB%2Farchviz.png?alt=media&#x26;token=288e7800-aedd-471d-b360-428cbcb5beb7" alt=""><figcaption></figcaption></figure>

There are two types of ArchViz cameras in ComponentCameraSystem: EArchVizCamera and EArchVizCineCamera. The former is used for general gameplay purpose like any other ECameraBase cameras, and the latter is specialized for Sequencers where you can keyframe different parameters to control the strength of two-point perspective.

## ArchViz Camera

Creating an ArchViz camera is as simple as creating a general ECamera.&#x20;

1. Search in the blueprint class for "EArchVizCamera", select it and rename as whatever you want.

<figure><img src="https://1253177398-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIc7aRtmwmEkkqEJZORmC%2Fuploads%2FVndHbAPaAH4GCz1uZPyg%2F1.png?alt=media&#x26;token=746f507c-f403-4694-8102-906351742bef" alt=""><figcaption></figcaption></figure>

2. In the "Components" panel on the left side, you can find a "CameraComponent" which has been substituted with the [EArchVizCameraComponent ](https://sulleyyys-organization.gitbook.io/manuals-of-ccs/camera-components/miscellaneous/archviz-camera-component)class. This is the class in which you need to tweak some parameters to control the strength of two-point perspective.

<figure><img src="https://1253177398-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIc7aRtmwmEkkqEJZORmC%2Fuploads%2FsI3GDG7dmf6rcwwVjfAR%2F2.png?alt=media&#x26;token=a51de68f-ee0d-4c45-9b64-3451c040bf4b" alt=""><figcaption></figcaption></figure>

3. Select the "CameraComponent" and go to the "Details" panel, you will see the "Arch Viz Camera Component" section and several parameters in it. Each parameter has detailed explanation and you can play with them at runtime to get an intuitive understanding of how they work.

<figure><img src="https://1253177398-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIc7aRtmwmEkkqEJZORmC%2Fuploads%2FnSSJdEEveo63Y2318fck%2F3.png?alt=media&#x26;token=a16c3947-72e7-4e80-bb4f-15f40c0fb1a5" alt=""><figcaption></figcaption></figure>

4. As what other normal cameras can do, you can also add a follow component, an aim component and multiple extensions in the "CameraSettingsComponent".

<figure><img src="https://1253177398-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIc7aRtmwmEkkqEJZORmC%2Fuploads%2FLx8HDJXXVINKV9OK91EF%2F4.png?alt=media&#x26;token=2c662f08-a9a3-4b9c-849e-8a5156103bbf" alt=""><figcaption></figcaption></figure>

5. In blueprint use the "CallCamera" node to invoke this camera.

Now by turning on the "Enable Correction" parameter and tweaking the "Perspective Strength" value, you can see the vertical lines of game objects are becoming more parallel, in the camera's view.  Note that "Perspective Strength" will make no effect if the camera's own pitch is zero. To make it work, try a non-zero pitch.

However, you should be very careful of tweaking the "Perspective Strength" value. When it has a large value with large (if positive) / small (if negative) pitches, the whole rendered view would get extensive distortion. If this is not what you need, you should restrict pitch range or use smaller "Perspective Strength".

<figure><img src="https://1253177398-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIc7aRtmwmEkkqEJZORmC%2Fuploads%2FeOAb7hYYMckXdYdFRCxQ%2Fezgif.com-video-to-gif.gif?alt=media&#x26;token=e172d3dd-1ac0-4a49-8091-e94038a73b9a" alt=""><figcaption></figcaption></figure>

## ArchViz CineCamera

This class is very similar to ArchViz Camera except that it is better for Sequencers than ArchViz Camera in that it contains a [CineCamera Component](https://docs.unrealengine.com/5.2/en-US/API/Runtime/CinematicCamera/UCineCameraComponent/) instead of a plain [Camera Component](https://docs.unrealengine.com/5.2/en-US/API/Runtime/Engine/Camera/UCameraComponent/), though you can also keyframe a ArchViz Camera in Sequencer but ArchViz CineCamera is recommended.

To use ArchViz CineCamera in Sequencer, just follow the next steps.&#x20;

1. Create a new level sequencer.

<figure><img src="https://1253177398-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIc7aRtmwmEkkqEJZORmC%2Fuploads%2Fk9evEtUvL3gqcg9M0juE%2F1.png?alt=media&#x26;token=96e9c676-6012-42ea-adc3-0f8ce5058798" alt=""><figcaption></figcaption></figure>

2. Open the sequencer and add the track of a ArchViz CineCamera. You can use an existing ArchViz CineCamera by first adding it to the scene or use the feature of [Spawnables](https://docs.unrealengine.com/5.2/en-US/spawn-temporary-actors-in-unreal-engine-cinematics/) provided by Sequencer. Whichever method you use, you now have a track of ArchViz CineCamera.

<figure><img src="https://1253177398-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIc7aRtmwmEkkqEJZORmC%2Fuploads%2FZlNyy5OBVO45kIrsBB00%2F2.png?alt=media&#x26;token=756aef58-c291-4ccb-9dd1-ac7d64da17a3" alt=""><figcaption></figcaption></figure>

3. Keyframe its properties of your interest. Specifically, you may need to keyframe the "Enable Correction" and "Perspective Strength" properties.

<figure><img src="https://1253177398-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIc7aRtmwmEkkqEJZORmC%2Fuploads%2FyVyqxIWkwMW7z3SOZVdJ%2F3.png?alt=media&#x26;token=945a0161-a4fd-40f6-bdbc-59b0a3b8c7fb" alt=""><figcaption></figcaption></figure>

4. (Optional) If you want to blend to an ordinary gameplay camera when the level sequence finishes, create a new custom event and bind it to the On Finished delegate. Don't forget to set Blend Time if you need.

<figure><img src="https://1253177398-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIc7aRtmwmEkkqEJZORmC%2Fuploads%2F23fop2DHCwPASlcvC5V5%2F4.png?alt=media&#x26;token=63df3e4b-9f3d-4767-83d2-c4e1d2ca541d" alt=""><figcaption></figcaption></figure>

Now you can play the Sequencer and have a smooth transition to gameplay cameras.

<figure><img src="https://1253177398-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIc7aRtmwmEkkqEJZORmC%2Fuploads%2FFYnWbtcZEa9BV1BxrUOD%2Farchvizcine.gif?alt=media&#x26;token=f6bcce9d-708a-4408-9d52-003bd32a11e1" alt=""><figcaption></figcaption></figure>

## Movie Render Queue

The UE's built-in add-on [Movie Render Queue](https://docs.unrealengine.com/5.2/en-US/render-cinematics-in-unreal-engine/) (MRQ) is specialized for rendering high-quality images from level sequencers. To enable use of ArchViz CineCameras in MRQ, what you only need to do is to use the rendering settings affixed with "EArchViz".

<figure><img src="https://1253177398-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIc7aRtmwmEkkqEJZORmC%2Fuploads%2FvLjjI0Eg4w775uDMHaTZ%2Frender.png?alt=media&#x26;token=b1280b6c-94f2-4e40-937b-8e0804665700" alt=""><figcaption></figcaption></figure>

Note that if you are using MRQ with ArchViz cameras, be sure to use ArchVizCineCamera rather than ArchVizCamera as only the former is supported.

## Parameters

ArchViz Camera and ArchViz CineCamera have the same following parameters included by both [ArchViz Camera Component](https://sulleyyys-organization.gitbook.io/manuals-of-ccs/camera-components/miscellaneous/archviz-camera-component) and [ArchViz CineCamera Component](https://sulleyyys-organization.gitbook.io/manuals-of-ccs/camera-components/miscellaneous/archviz-cinecamera-component).

<table><thead><tr><th width="143.33333333333331">Parameter</th><th width="132">Note</th><th>Description</th></tr></thead><tbody><tr><td><p>Enable</p><p>Correction</p></td><td></td><td>Whether to enable perspective correction.</td></tr><tr><td><p>Perspective</p><p>Strength</p></td><td></td><td>Strength to correct perspective. 1.0 means full correction.</td></tr><tr><td><p>Vertical</p><p>Project</p><p>Offset</p></td><td>Read-only</td><td>This is read-only for debug purposes.</td></tr><tr><td><p>MinMax</p><p>Pitch</p></td><td></td><td>Max and min pitch, should be propertly set to avoid distortion. If also using ControlAim, this parameter should be compatible with that in ControlAim.</td></tr></tbody></table>
