mujoco-rendering
Renders RGB images, metric depth maps, and segmentation masks from MuJoCo physics simulations using offscreen cameras in Python or C/C++.
What it does
MuJoCo offscreen image rendering using mujoco.Renderer in Python and the MuJoCo C/C++ rendering pipeline (mjrContext, mjvScene, mjr_render, mjr_readPixels): RGB, metric depth maps, segmentation masks (mjtObj), MJCF offwidth/offheight framebuffer sizing, MUJOCO_GL (osmesa, egl), MuJoCo cameras (fixed, tracking, free, MjvCamera), and mjvOption flags/geomgroup. Use only for headless camera rendering, dataset recording, and visual observations in MuJoCo simulations. Don't use for generic OpenGL/EGL/OSMesa offscreen rendering, glReadPixels depth/segmentation post-processing, or synthetic dataset pipelines that do not use the `mujoco` library, or for interactive viewers/Studio (mujoco-studio) or ImGui controls (mujoco-gui).
Quality judgment
Comprehensive coverage of both Python and C rendering pipelines, headless GL setup, cameras, framebuffer sizing, gotchas, and the Filament backend, with correct runnable code and precise doc-anchor references. Triggers are well-scoped with clear inclusions/exclusions. Minor deductions: Filament Python section lacks a code example and some depth/segmentation details are thin (e.g., no depth-to-metric conversion notes).