Skip to main content
mujoco-react already loads remote MJCF/XML models through SceneConfig.src and follows referenced assets. Use this guide when a perception model returns 2D image coordinates and you need the corresponding MuJoCo body, geom, and world point.

Project A Detector Point

api.projectImagePointTo3D uses the same camera options as api.captureCameraFrame, so the image you send to a model and the coordinate projection can share one camera definition.

Coordinate Spaces

Use an explicit coordinate space instead of guessing detector conventions: For pixel coordinates, pass imageWidth and imageHeight when they differ from the capture size.

Standalone Utility

For custom renderers, use the standalone helper.
Projection respects capture exclusion metadata plus hiddenGeomGroups, visibleGeomGroups, and hiddenGeomNames, matching the common perception capture path.