Closed azeey closed 2 years ago
Merging #76 (2861b20) into main (4e02950) will not change coverage. The diff coverage is
100.00%
.
@@ Coverage Diff @@
## main #76 +/- ##
=======================================
Coverage 98.84% 98.84%
=======================================
Files 21 21
Lines 1992 1992
=======================================
Hits 1969 1969
Misses 23 23
Impacted Files | Coverage Δ | |
---|---|---|
...mjcf_to_sdformat/test_add_mjcf_worldbody_to_sdf.py | 99.53% <100.00%> (ø) |
|
...ests/mjcf_to_sdformat/test_mjcf_material_to_sdf.py | 98.48% <100.00%> (ø) |
Continue to review full report at Codecov.
Legend - Click here to learn more
Δ = absolute <relative> (impact)
,ø = not affected
,? = missing data
Powered by Codecov. Last update 4e02950...2861b20. Read the comment docs.
🦟 Bug fix
Summary
Currently, the
rgba
attribute of a geom is used to set all the color components ofmaterial
includingemissive
, but this doesn't produce the expected result. Given the following MJCF fileThe resulting geometry has the following material
Simulating this in Mujoco shows a dark screen since the headlight (default light) is set to "0 0 0". However, in gz-sim (after setting the background and ambient colors to black), the box is still displayed:
So I think it's best if we left out setting the emissive component from the
rgba
attribute.Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge and edit the commit message to match the pull request summary while retaining
Signed-off-by
messages.