Working with Perspective Match

Camera Matching Video Captions: In VRED 2020, we are now able to match a camera against a background image, so the perspective in the backplace matches the camera in the 3D scene. Now, you don't have to guess the right perspective anymore or use external tools for that. The tool can be found in the Camera Editor in the Advanced tab. Just enable Perspective Match and align the vanishing lines accordingly, like shown in this example, using the X, Y, and Z options. The magnifier will help you find the right position. Now, you can adjust the object's position against the background without losing the right camera angle. In Perspective Match mode, you can do pan, zoom, and constrain horizontal mouse navigation around the camera pivot. The vertical navigation is automatically disabled.


Once you're ready to use Perspective Match, please check out these helpful hints:

Correctly Placing Vanishing Lines

This example image shows how to correctly place vanishing lines in a scene.

Vanishing Lines placed in a scene

How to Use Perspective Match

While Perspective Match is active, VRED restricts camera rotation in the viewport, horizontally, around the current camera pivot (displayed as an orange cross in the viewport).

Image of the camera pivot

This ensures the perspective match isn't broken by camera navigation in the viewport. In fact, the camera is moved and rotated so it appears as if the scene is rotating on the ground, around the camera pivot. You can also achieve this in the Camera Editor, using the Perspective Match Rotate option. See Rotate (above) for additional information.

We recommend creating a new viewpoint for the final matched view. In the Camera Editor, right-click the camera and select Create > Viewpoint. All settings, including the vanishing lines, are stored in the viewpoint.

  1. In the Menu Bar, select Scene > Sceneplate Editor, then right-click within the editor, select Create Backplate, locate a backplate (could be a .jpg), and click Open to load the backplate.

    Note:

    Position, rotate, and scale the backplate as needed before using the Perspective Match tool.

  2. In the Camera Editor, select the Advanced tab, scroll to the bottom of the parameters, then open the Perspective Match section.

  3. Tap the Perspective Match button to enable the tool.

    Perspective Match button

  4. Choose an option from the Vanishing Lines option to set the vanishing lines in your image. By default, the coordinate space is Z-up.

    Position the X manipulators along a line in the X-axis, then the Y along the Y-axis. See Position Vanishing Lines Using the Magnifier for how to use Magnify Factor to precisely position manipulator handles.

    Now, you can pan with your camera to position your object, move it forwards and backwards.

  5. Use Rotate to rotate the object. Set the number of degrees, then use the arrows to rotate clockwise or counter-clockwise.

Troubleshooting

In this section, find solutions for common issues when using Perspective Match.

My Backplate Image is Tilted

If the horizon in the backplate image is tilted, Perspective Match sets the tilted angle into the camera Roll parameter, found in the Lens Attributes section.

The default Roll value is 0°. Please keep in mind, when using the same camera for different purposes after the matching, check the Roll parameter and reset it to 0, if necessary.

Tilted backplace horizon

  1. In the Camera Editor, in the Camera Settings tab, open the Lens Attributes section.

  2. Tap-drag to scroll wheel to correct the tilt and see your changes in the viewport.

    Note:

    The default Roll value is 0°. Please keep in mind, when using the same camera after the matching for different purposes, check the Roll parameter. If it was changed, reset it to 0.

Tip:

Want to make a street or car look more dynamic? Try one of the following:

Position Vanishing Lines Using the Magnifier

  1. Shift-click a vanishing line to position it.

  2. Shift-click the handle of a vanishing line to access the Magnifier. This provides a magnified view of the area around the handle to aid with placement.

  3. Change the Magnify Factor option if you need more magnification.

    Tip:

    Set a large value to see the area better and precisely place the handle.

    Magnify Factor at **2**

    Magnify Factor at **16**

My Model is Off Screen

While placing the vanishing lines, the camera parameters automatically adjusted to the current matching result. This repositioned your model off the screen. How do you get your model back? Follow these steps:

  1. Finish placing of the vanishing lines.
  2. From the Scene Graph, select the model to be rendered and press Shift + F or use the Zoom To button. This zooms into the selected model and puts it in the center of the camera.
  3. Now, change the camera translation and distance to the model in the viewport to place the model correctly infront of the backplate.

Python Commands for Perspective Match

These are the functions and types for Perspective Match: