Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Transparency property apply to .stl mesh in Gazebo 7.0

Hello,

I would like to add the transparency property to an object without success.

The sdf file model is:

<?xml version='1.0'?>
<sdf version='1.6'>
  <model name='maze'>
    <static>true</static>
    <link name="walls">
      <collision name="collision">
        <geometry>
          <mesh>
            <uri>model://maze/meshes/maze_v2.stl</uri>
           <scale>0.0012 0.0012 0.0012</scale>
          </mesh>
        </geometry>
      </collision>
      <visual name="visual">
        <transparency>0.5</transparency>
        <geometry>
          <mesh>
            <uri>model://maze/meshes/maze_v2.stl</uri>
        <scale>0.0012 0.0012 0.0012</scale>
          </mesh>
        </geometry>
      </visual>
    </link>
  </model>
</sdf>

The property transparency does not take effect. Any suggestions? I would like to reproduce the same behaviour as the /view/transparent menu from gazebo.

Thanks in advance,