Gazebo | Ignition | Community
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Strange effect when importing DAE model retrieved on the web

Hi all,

I'm trying to enlarge my models database by retrieving models from the 3D warehouse.

As a reference I'm following this tutorial. And the procedure I follow to generate a COLLADA model is the following.

To check the outcome of the procedure, I open the .dae model with Meshlab. And this is what I get!

image description

So, I'm pretty happy with the result!!!

Next, I create a gazebo model in the following steps:

  • go to ~/gazebo/models folder
  • create a folder to store the necessary files (e.g. ./armchair)
  • create model.config and model.sdf files
  • copy the model.dae file in the ./armchair/meshes folder
  • copy the texture images (if any) in the ./armchair/materials/textures/ folder

where the model.config file contains:

<?xml version="1.0"?>

<model>
  <name>armchair</name>
  <version>1.0</version>
  <sdf version="1.5">model.sdf</sdf>

  <author>
    <name>Federico Nardi</name>
    <email>fnardi@dis.uniroma1.it</email>
  </author>

  <description>
  Armchair
  </description>
</model>

and the model.sdf:

<?xml version="1.0" ?>
<sdf version="1.5">
  <model name="armchair">
    <link name="link">
      <pose>0 0 0 0 0 0</pose>
      <collision name="collision">
        <geometry>
          <mesh>
            <uri>model://armchair/meshes/model.dae</uri>
          </mesh>
        </geometry>
      </collision>
      <visual name="visual">
        <geometry>
          <mesh>
            <uri>model://armchair/meshes/model.dae</uri>
          </mesh>
        </geometry>
      </visual>
    </link>
  </model>
</sdf>

When I insert the model in gazebo, this is the picture:

image description

As you can see the textures are correctly loaded, but the edges of the model are marked in white!

Can someone please explain me what's happening?

Thanks.

Strange effect when importing DAE model retrieved on the web

Hi all,

I'm trying to enlarge my models database by retrieving models from the 3D warehouse.

As a reference I'm following this tutorial. And the procedure I follow to generate a COLLADA model is the following.

To check the outcome of the procedure, I open the .dae model with Meshlab. And this is what I get!

image description

So, I'm pretty happy with the result!!!

Next, I create a gazebo model in the following steps:

  • go to ~/gazebo/models folder
  • create a folder to store the necessary files (e.g. ./armchair)
  • create model.config and model.sdf files
  • copy the model.dae file in the ./armchair/meshes folder
  • copy the texture images (if any) in the ./armchair/materials/textures/ folder

where the model.config file contains:

<?xml version="1.0"?>

<model>
  <name>armchair</name>
  <version>1.0</version>
  <sdf version="1.5">model.sdf</sdf>

  <author>
    <name>Federico Nardi</name>
    <email>fnardi@dis.uniroma1.it</email>
  </author>

  <description>
  Armchair
  </description>
</model>

and the model.sdf:

<?xml version="1.0" ?>
<sdf version="1.5">
  <model name="armchair">
    <link name="link">
      <pose>0 0 0 0 0 0</pose>
      <collision name="collision">
        <geometry>
          <mesh>
            <uri>model://armchair/meshes/model.dae</uri>
          </mesh>
        </geometry>
      </collision>
      <visual name="visual">
        <geometry>
          <mesh>
            <uri>model://armchair/meshes/model.dae</uri>
          </mesh>
        </geometry>
      </visual>
    </link>
  </model>
</sdf>

When I insert the model in gazebo, this is the picture:

image description

As you can see the textures are correctly loaded, but the edges of the model are marked in white!

Can someone please explain me what's happening?

Thanks.


EDIT: @sloretz, here is the model.dae:

https://drive.google.com/open?id=1J5fCXaAUsOCd_KaECSbFKw12EhtSEnID


EDIT 2: @nkoenig, I'm using Gazebo 7.0.0.

Strange effect when importing DAE model retrieved on the web

Hi all,

I'm trying to enlarge my models database by retrieving models from the 3D warehouse.

As a reference I'm following this tutorial. And the procedure I follow to generate a COLLADA model is the following.

To check the outcome of the procedure, I open the .dae model with Meshlab. And this is what I get!

image description

So, I'm pretty happy with the result!!!

Next, I create a gazebo model in the following steps:

  • go to ~/gazebo/models folder
  • create a folder to store the necessary files (e.g. ./armchair)
  • create model.config and model.sdf files
  • copy the model.dae file in the ./armchair/meshes folder
  • copy the texture images (if any) in the ./armchair/materials/textures/ folder

where the model.config file contains:

<?xml version="1.0"?>

<model>
  <name>armchair</name>
  <version>1.0</version>
  <sdf version="1.5">model.sdf</sdf>

  <author>
    <name>Federico Nardi</name>
    <email>fnardi@dis.uniroma1.it</email>
  </author>

  <description>
  Armchair
  </description>
</model>

and the model.sdf:

<?xml version="1.0" ?>
<sdf version="1.5">
  <model name="armchair">
    <link name="link">
      <pose>0 0 0 0 0 0</pose>
      <collision name="collision">
        <geometry>
          <mesh>
            <uri>model://armchair/meshes/model.dae</uri>
          </mesh>
        </geometry>
      </collision>
      <visual name="visual">
        <geometry>
          <mesh>
            <uri>model://armchair/meshes/model.dae</uri>
          </mesh>
        </geometry>
      </visual>
    </link>
  </model>
</sdf>

When I insert the model in gazebo, this is the picture:

image description

As you can see the textures are correctly loaded, but the edges of the model are marked in white!

Can someone please explain me what's happening?

Thanks.


EDIT: @sloretz, here is the model.dae:

https://drive.google.com/open?id=1J5fCXaAUsOCd_KaECSbFKw12EhtSEnID

https://drive.google.com/a/dis.uniroma1.it/file/d/1amriasNXdOZe8f-K9m1vVqMEiBtLCQrf/view?usp=sharing

https://drive.google.com/a/dis.uniroma1.it/file/d/1TTqAamutCRL5gWq0O1hKtXR-nLJHa6uM/view?usp=sharing


EDIT 2: @nkoenig, I'm using Gazebo 7.0.0.