You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
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