gazebosim / gazebo-classic

Gazebo classic. For the latest version, see https://github.com/gazebosim/gz-sim
http://classic.gazebosim.org/
Other
1.15k stars 478 forks source link

Changing material script in model editor has no effect #1758

Open osrf-migration opened 8 years ago

osrf-migration commented 8 years ago

Original report (archived issue) by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


  1. Insert a box into the model editor

  2. Right click for the link inspector, and go to the visual tab

  3. Change material from Grey to Blue and press ok - nothing changes.

osrf-migration commented 7 years ago

Original comment by Nate Koenig (Bitbucket: Nathan Koenig).


osrf-migration commented 7 years ago

Original comment by Louise Poubel (Bitbucket: chapulina, GitHub: chapulina).


There's also an issue supporting materials embedded inside collada or obj files. If you add a custom mesh from these formats which has its own material, the material doesn't show and instead we see the default material. That's happening because the editor adds material tags which override the original material.

To reproduce:

  1. Open the model editor

  2. Click on Add a custom mesh

  3. For dae, choose the cordless_drill mesh. For obj, choose the cloverleaf_exchange one.

  4. Once the mesh is loaded in the editor, it looks grey. It also looks grey when you save it.

  5. After saving, you can manually remove the material tag from the sdf file and check that the textures load properly then.