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 graduate student at HKU, I use MuJoCo for my research on robotic manipulation.
My setup
MuJoCo 3.3.0, Python, Linux
What's happening? What did you expect?
When comparing two geoms, A and B, under MuJoCo's GL_MODULATE setting:
Geom A uses material MA with rgba = (0.5, 0.5, 0.5, 1) (a non-white color).
Geom B uses material MB with rgba = (1, 1, 1, 1) and applies a pure-color texture(0.5, 0.5, 0.5, 1).
Under diffuse lighting, both geoms render the same color, as expected. However, when ambient or specular lighting is introduced:
Geom A's rendered color changes according to ambient/specular intensity.
Geom B's rendered color remains invariant to ambient/specular lighting.
This inconsistency makes it impossible to seamlessly transition between textured and untextured faces under non-diffuse lighting.
Additional Clarification Request: Color Space Handling
OpenGL's Fixed Function Pipeline (FFP) operates in linear RGB unless explicitly configured otherwise (e.g., via GL_SRGB8_ALPHA8 or GL_FRAMEBUFFER_SRGB). Since MuJoCo does not appear to enable either:
Are all input/output colors (including textures) treated as linear RGB?
If textures are typically authored in sRGB, does the lack of gamma correction lead to incorrect brightness after lighting?
I would appreciate any corrections or insights into these behaviors.
Steps for reproduction
Run script to generate textuer, then launch model.
Intro
Hi!
I am a graduate student at HKU, I use MuJoCo for my research on robotic manipulation.
My setup
MuJoCo 3.3.0, Python, Linux
What's happening? What did you expect?
When comparing two geoms,
A
andB
, under MuJoCo'sGL_MODULATE
setting:MA
withrgba = (0.5, 0.5, 0.5, 1)
(a non-white color).MB
withrgba = (1, 1, 1, 1)
and applies a pure-color texture(0.5, 0.5, 0.5, 1)
.Under diffuse lighting, both geoms render the same color, as expected. However, when
ambient
orspecular
lighting is introduced:This inconsistency makes it impossible to seamlessly transition between textured and untextured faces under non-diffuse lighting.
Additional Clarification Request: Color Space Handling
OpenGL's Fixed Function Pipeline (FFP) operates in linear RGB unless explicitly configured otherwise (e.g., via
GL_SRGB8_ALPHA8
orGL_FRAMEBUFFER_SRGB
). Since MuJoCo does not appear to enable either:I would appreciate any corrections or insights into these behaviors.
Steps for reproduction
Run script to generate textuer, then launch model.
Minimal model for reproduction
Code required for reproduction
Confirmations
The text was updated successfully, but these errors were encountered: