ModelPrimitive

A primitive representing a 3D model file loaded from an external URL or embedded data.

Parent schema

ModelPrimitive appears in the SceneEntity message schema.

Schema

FieldTypeDescription
posePoseThe position and orientation of the model relative to the reference frame.
scaleVector3Scale factor applied to the model along each axis.
colorColorSolid color applied to the entire model if override_color is set to true.
override_colorbooleanIf true, overrides the model's original material colors with the specified color.
urlstringURL linking to the external model file. One of url or data must be provided.
media_typestringMIME type of the embedded model (e.g., model/gltf-binary). Required if data is used instead of url. Overrides inferred type.
databytesEmbedded model data. If provided, media_type must be specified. One of url or data must be provided.

Reference implementations

Foxglove schemas are independent of any specific framework and can be used with any supported message encoding. The schema names should be specified as seen below: