How to render MuJoCo over an existing OpenGL scene with transparent background? #2799
Replies: 1 comment
-
|
@HongtaeLee-97 Did you ever find a solution? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Intro
Hi!
I am a researcher, I use MuJoCo for my research on robot motion verification.
My setup
MuJoCo 3.3.4 / Windows / (MFC, WGL/HDC/HGLRC), OpenGL / C++
My question
As soon as I call mjr_render, the background becomes black and covers the previously drawn point cloud. I would like MuJoCo to not paint/clear the background (i.e., render just geoms), or to be transparent over my already-rendered content.
Is there a supported way to make MuJoCo not clear / not paint the background in mjr_render, i.e., render only the geoms on the current framebuffer?
Is there a setting (flag/option/material) that makes the background transparent or skips skybox/clear completely?
Any example code for integrating MuJoCo rendering into an existing OpenGL pipeline (WGL, not GLFW) without letting it overwrite the color buffer background?
The first picture is a point cloud, and the second picture is a rendered mujoco model while maintaining the point cloud.
Minimal model and/or code that explain my question
used xml : https://github.com/google-deepmind/mujoco_menagerie/tree/main/universal_robots_ur5e
Code:
Confirmations
Beta Was this translation helpful? Give feedback.
All reactions