Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Principle:Google deepmind Mujoco Scene Update

From Leeroopedia
Knowledge Sources
Domains Visualization, 3D_Graphics
Last Updated 2026-02-15 06:00 GMT

Overview

Process of converting the current simulation state into an abstract 3D scene representation for rendering.

Description

Scene Update transforms the physics simulation state (body positions, joint angles, contact points) stored in mjData into the abstract mjvScene geometry list. This includes computing world-frame positions for all visual geometries, generating contact force visualizations, adding perturbation arrows, updating flex/skin deformations, and sorting geometries for correct transparency rendering. The scene update is independent of the rendering backend.

Usage

Call this principle in the render loop after each simulation step (or at the desired visualization frame rate) and before rendering. The camera, options, and perturbation state control what is included in the scene.

Theoretical Basis

Scene construction involves:

  1. Body transforms: Map local geom positions to world frame using body transforms from mjData
  2. Category filtering: Apply catmask to select which geom categories to include
  3. Decoration: Add visualization aids (contact forces, constraint forces, frames, labels)
  4. Transparency sorting: Sort geoms by depth for correct alpha blending
  5. Deformation update: Update flex vertices and skin mesh deformations

Related Pages

Implemented By

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment