Matching and Solving Cameras

The next stride after setting up the rig is to set the photographic camera backdrop for the rig, locate matches between overlapping cameras, and solve the camera positions relative to each other.

1. The Analysis section enables you to modify the camera properties for the rig. Past default, CaraVR assumes that all cameras take the aforementioned focal altitude, no lens distortion, and a spherical layout.

Set the Focal Length to account for:

Known Focal Length - fixes the existing focal length in the solve.

Optimize per Photographic camera - calculates the focal length for each photographic camera in the rig.

Optimize Unmarried - calculates a single optimized focal length for all cameras in the rig.

two. Set the Lens Distortion, if required. CaraVR assumes No Lens Distortion by default, only like Focal Length, you can account for:

Known Distortion - fixes the lens distortion in the solve.

Optimize per Camera - calculates the lens distortion for each camera in the rig.

Optimize Single - calculates a single optimized lens distortion for all cameras in the rig.

3. Set the Camera Layout you intend to use:

Nodal Layout - all cameras are located at the scene origin. For example, a single DSLR shooting 360 stills would use this nodal layout setting.

Spherical Layout - the cameras in the rig are placed on a sphere whose diameter, defined by the Rig Size control on the Cameras tab, defaults to 30 cm.

Horizontal / Vertical / Planar Layout - the cameras in the rig are placed on a unmarried line or plane depending on option.

Free Layout - no constraints are enforced on camera positions.

Note: The Horizontal, Vertical, Planar, and Gratuitous layouts are experimental. Delight contact support.foundry.com if you have any feedback you'd like to share with Foundry.

Tip: Setting the Rig Size command to the bodily size of the rig in employ allows you to enter existent world measurements for other Cameras controls, such as Focal Length.

Rigs that utilize multiple cameras, filming concurrently, usually have a spherical configuration assuasive you to alter the Convergence between cameras to check for prototype alignment at dissimilar depths in the scene. See Adjusting Convergence in Spherical Rigs for more information.

four. CaraVR automatically adds a single keyframe at the get-go of the sequence to define a set of feature matches that correspond to stock-still points in the scene, but you can add keyframes manually past:

scrubbing in the Viewer and and then clicking Add Key () to add together a keyframe at the electric current frame, or

clicking Key All to add keyframes throughout the sequence at the Step interval.

clicking Import and selecting the node from which you want to import keyframes. You can import keyframes from any instance of C_CameraSolver, C_Stitcher, or C_ColourMatcher in the script.

The more keyframes you add, the longer the process takes, though you may go better results.

Note: C_Stitcher only computes optical flow camera warps at designated keyframes, it ignores upstream animation that does not fall on the same keyframes. Use the Import button to copy over all keyframes from C_CameraSolver. This style, any additional per-camera, transmission keyframes added in the Cameras tab are also copied.

Tip: If you're solving a rig with a nodal layout, you tin click the Settings tab and enable Solve for animated cameras to calculate animated values for the photographic camera parameters at each of the analysis key frames.

This setting can help to eliminate ghosting in mono 360 nodal stitches by automatically adjusting the cameras to recoup for differing scene depths.

Bear in mind, however, that this setting may produce odd results if the camera position is fixed. Any changes in camera rotation at the analysis keys may cause the background scene to shift.

5. Click Friction match to compare keyframes on overlapping cameras for shared features. CaraVR only looks for matches in cameras that overlap by default.

Note: Match calculates the characteristic matches for all cameras in the rig at the same fourth dimension, and then there is no need to calculate them separately for left and right images in a stereo setup. See Stitching Stereographic Rigs for more than information.

Initially, all the matched features for the cameras overlay each other in the Viewer. Individual matches won't be visible until you lot solve the cameras on the rig, or zoom into the Viewer as shown in the second image.

Feature matches for all cameras at dissimilar Viewer zoom levels.

Note: Matches are simply displayed when the playhead is on a keyframe.

You can step through the cameras on the rig to examine the matches using the views buttons higher up the Viewer. If you switch the Viewer to display simply the alpha aqueduct, you can also examine the default masks practical to each view.

Characteristic matches in a single photographic camera.

The default alpha channel mask.

When the rig is solved, yous tin can also view matches betwixt overlapping cameras in latlong space by switching the Cam Projection dropdown to Latlong.

Feature matches in a single photographic camera
in latlong space.

Come across Troubleshooting Matches and Solves for more information on improving friction match results.

half dozen. Click Solve to calculate the geometry for the selected rig to define the location and orientation of each photographic camera, relative to the other cameras in the rig, and arrange the matched images in the correct club.

Annotation: The solve calculates the geometry for all cameras in the rig at the same time, so there is no need to calculate them separately for left and right images in a stereo setup. Come across Stitching Stereographic Rigs for more information.

The solved preview image displays in the Viewer, including all matched points for the cameras in the rig.

The solved cameras and feature matches at unlike Viewer zoom levels.

seven. Switch to Photographic camera mode () in the Viewer tools to brandish an overlay containing the number of features shared by overlapping cameras and the RMS (root-mean-square) errors calculated by the solve for them.

Light-green overlays stand for RMS errors below the Mistake Threshold and red overlays those over the threshold.

Notation: The overlay is only displayed when the playhead is on a keyframe.

See Troubleshooting Matches and Solves for information on how to refine your matched features and solve.

8. Plow off the overlay by pressing Q over the Viewer to see the result.
9. The solved cameras may need a picayune piece of work to get the horizon line right before you lot proceed to stitching the views together. CaraVR may not automatically place your images in the correct orientation.

CaraVR offers 2 methods for aligning the horizon, the Transform controls on the Settings tab and the Viewer toolbar.

Transform Controls - Open up the C_CameraSolver Properties panel and click the Settings tab. Adjust the rotate x,y, and z controls to align the cameras as flat line halfway down the frame, or the equator.

Viewer toolbar - enable the Horizon tool and then hold Ctrl/Cmd+Alt and drag in the Viewer to adapt the horizon line.

Note: You can likewise adjust individual cameras this mode, by selecting the Camera tool instead.

10. Set the required output resolution using the Format dropdown, if required.

Tip: CaraVR adds a tab to the Properties panel of Nuke'southward Write node assuasive yous speedily select groups of views such as stereo and cams when rendering previews or stitches. You can still select views manually using the views dropdown, but View Presets can make the process faster.

xi. For more data about inaccurate feature matches or solved cameras, have a look at the Troubleshooting Matches and Solves section before stitching the images.

Once you have your solved rig, you lot can consign to a variety of preset nodes (see Exporting to Preset Nodes for more information), skip to Stitching Images Together to stitch the preview together, or keep to C_ColourMatcher using C_ColourMatcher prior to stitching.