gazebosim / gz-mujoco

27 stars 4 forks source link

[SDFormat->MJCF] Material specular and emissive is a scalar not a color #25

Open ahcorde opened 2 years ago

ahcorde commented 2 years ago

SDf defines material specular and emissive as Color (r, g, b, a) but MJCF defines this as a scalar.

If, for example, you have a specular of [0.9, 0, 0], I would expect a red highlight, but this would result in gray.

Related comment https://github.com/gazebosim/gz-mujoco/pull/18#discussion_r870484164