Aligning Rigid Body Pivot Point with a Replicated 3D Model

This page provides instructions for aligning a Rigid Body pivot point with a real object replicated 3D model.

Overview

When using streamed Rigid Body data to animate a real-life replicated 3D model, it's critical that the Rigid Body's pivot point aligns with the location of the pivot point in the corresponding 3D model. If they are not aligned, the animated motion will not be in a 1:1 ratio to the actual motion.

This alignment is critical for real-time VR applications where real-life objects are 3D modeled and animated in the scene.

Aligning Rigid Body Pivot Point

There are two methods to align the pivot point of a rigid body. We recommend using the measurement probe method as it is the most accurate.

Measurement Probe

Step 1. Create a Rigid Body of the target object

Create a Rigid Body from the markers on the target object. By default, Motive will position the pivot point of the Rigid Body at the geometric center of the marker placements. Once the Rigid Body has been created, place the object in a stable location where it will remain stationary.

Step 2. Create a measurement probe asset

Please refer to Measurement Probe page for instructions to create a measurement probe asset in Motive.

You can purchase an OptiTrack probe or create your own.

Step 3. Collect data points to outline the silhouette

Use the created measurement probe to collect sample data points that outline the silhouette of the object. Mark all corners and other key features on the object.

Step 4. Attach 3D model

After generating 3D data points using the probe, attach the game geometry (obj file) to the Rigid Body.

  1. Select the Rigid Body in either the Devices pane or the 3D Viewport to show its properties in the Properties pane.

  2. In the Visuals section, select Custom Model under the Geometry property. (Note: this is an Advanced setting.)

  3. This will open the Attached Geometry field. Click the folder to the right of the field to browse to the location of your 3D model.

From the sampled 3D points, You can also export markers created from the probe to Maya or other content creation packages to generate models guaranteed to scale correctly.

Step 5. Translate the pivot point

Next, use the GIZMO tool to translate the 3D model to align with the silhouette sample collected in Step 3. Move, rotate, and scale the model until it is perfectly aligned with the silhouette.

Step 6. Align to Geometry

  1. With both the Rigid Body and the 3D model selected, open the Modify tab in the Builder pane.

  2. In the Align to... section, select Geometry.

  3. The pivot point for the Rigid Body will snap to align with the pivot point for the 3D model.

Reference Grayscale View

Use a reference camera when the option to use the probe method is not available.

  1. Change the Video Type for one of the cameras to grayscale mode.

  2. Right-click the camera and select Make Reference.

  3. This will create a Rigid Body overlay in the Camera view pane. Follow steps 4, 5, and 6 above using the reference video to align the Rigid Body pivot.

Last updated