CG Focus Controller

This page contains information about the CG Focus Controller of the Camera Parameters Manager feature.

Controller Description

The CG Focus Controller is a controller that adjusts the desired focus distance of the smartphone's camera according to the distance between the Virtual Camera Actor and the Virtual Object of focus.

Use Case

The CG Focus Controller was developed to tackle the problem of setting the camera focus distance to match the distance of CG/virtual objects. Since with the CameraTwin application the smartphone's camera parameters are matched with the Virtual CineCamera Actor, that means that the focus distance of both is set based on the focus settings of the smartphone. In the case of automatic focus the smartphone is estimating the actual distance of the objects in view and it adjusts the lenses to focus on that distance. In the case of manual focus the phone is focusing on that specific distance. In both cases the Virtual objects, like an AR character, are not perfectly in focus throughout the shoot as the camera is moving. For that reason the CG Focus controller was developed in order to automatically calculate the distance between the Virtual Camera Actor and the Virtual Character or Actor that needs to be in focus. This distance is then set as the desired focus distance to the phone and it dynamically changes on every frame.

Setup and Usage

Create the Controller

To create the CG Focus Controller you can either go to the Camera Parameters Manager of your desired Camera Actor

Add a new Controller in the list of the Camera Controllers

Create a new CG Focus Controller Asset from the dropdown

Or alternatively right click in content browser and start typing "CG Focus Camera Parameters Controller"

Set the Actor of Focus

Open the CG Focus Controller Asset and set the "Actor to Focus" field with the Actor you desire to focus on

Usage

Make sure that the phone is set to "Remote" Mode for the Focus-Zoom pair, you can find more information about that here.

After that you are ready to shoot your AR shot with your CG character in focus!

Controller of:

Camera Parameters Manager

Last updated