Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Color not shown in Gazebo using dae files

I have an issue with Gazebo and color. I am using Blender to attach materials with different colors to different faces of a mesh.

When I export the model as a collada file (.dae) and load it into Gazebo the model has no colors. In rviz all colors show correctly. See screenshot:

image description

I have noticed that the ambiet values in the dae file look like this:

  <color sid="ambient">0 0 0 1</color>

In gazebo the values were set to 1, so I changed all ambient values to

  <color sid="ambient">1 1 1 1</color>

Unfortunately the outcome was the same. I have also added some light sources which didnt help.

My export settings in Blender look like this

image description

The collada file looks like this: C:\fakepath\color_test_3.model

Gazebo version used: Gazebo multi-robot simulator, version 9.6.0

Blender version: Blender 2.79 (sub 0)

ROS version: melodic

OS: Ubuntu 18.04.1 LTS

What could I be doing wrong?