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.
Last updated
This page provides instructions for aligning a Rigid Body pivot point with a real object replicated 3D model.
Last updated
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.
These steps can be completed in Live or Edit mode.
There are two modes for editing:
Edit: Playback in standard Edit mode displays and streams the processed 3D data saved in the recorded Take. Changes made to settings and assets are not reflected in the Viewport until the Take is reprocessed.
Edit 2D: Playback in Edit 2D mode performs a live reconstruction of the 3D data, immediately reflecting changes made to settings or assets. These changes are displayed in real-time but are not saved into the recording until the Take is reprocessed and saved. To playback in 2D mode, click the Edit button and select Edit 2D.
Regardless of the selected Edit mode, you must reprocess the Take to create new 3D data based on the modifications made.
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.
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.
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.
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.
After generating 3D data points using the probe, attach the game geometry (obj file) to the Rigid Body.
Select the Rigid Body in either the Devices pane or the 3D Viewport to show its properties in the Properties pane.
In the Visuals section, select Custom Model under the Geometry property. (Note: this is an Advanced setting.)
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.
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.
With both the Rigid Body and the 3D model selected, open the Modify tab in the Builder pane.
In the Align to... section, select Geometry.
The pivot point for the Rigid Body will snap to align with the pivot point for the 3D model.
Use a reference camera when the option to use the probe method is not available.
Change the Video Type for one of the cameras to grayscale mode.
Right-click the camera and select Make Reference.
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.
Decrease the size of the marker visual to improve accuracy when aligning the object. To change the marker size, click the button to open the Application Settings panel. Go to View -> 3D View -> Markers -> Custom Size.