Skip to content

Support Image Rendering for Vision-Based Research #32

Closed

Description

@iitimii

Add support for rendering RGB (and optionally depth/segmentation) images in the simulation using MuJoCo’s camera API.

Activity

  1. iitimii commented on May 24, 2025

    @iitimii
    Author

    Curious if you have any suggestions or pointers on how to approach this, @amacati .

    For camera setup — should it be fixed, attached to the drone’s body, or tracking the drone?

    Also, should image rendering be implemented inside the simulation core or on top of the gymnasium environments? Any other nuances to be aware of?

  2. amacati commented on May 24, 2025

    @amacati
    Collaborator

    It should definitely be implemented as a sensor on the drones using native mujoco functions. One would probably have to include the sensor in the drone xml.

    One thing that is critical is that the simulation should not pay the cost of adding the sensor if images are not being rendered. This includes potential buffers for images. Otherwise, we probably won't be able to initialize sims with 1M drones anymore, and the regular sim would slow down for no reason.

    It's probably best to look at some examples that include cameras in mujoco, then port that to mjx and finally integrate it into our stack

  3. ratheron commented on Mar 19, 2026

    @ratheron
    Collaborator

    Fixed in #48

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions