Home | Tutorials | Wiki | Issues
Ask Your Question
0

Strange effect when importing DAE model retrieved on the web

asked 2017-12-01 04:48:34 -0600

federico.nardi gravatar image

updated 2017-12-01 13:27:14 -0600

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=1J5f...

https://drive.google.com/a/dis.unirom...

https://drive.google.com/a/dis.unirom...


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

edit retag flag offensive close merge delete

Comments

Mind posting the collada model?

sloretz gravatar imagesloretz ( 2017-12-01 09:33:16 -0600 )edit

Can you also say what version of Gazebo you are using?

nkoenig gravatar imagenkoenig ( 2017-12-01 09:49:05 -0600 )edit

Looks like the same weird wireframe effect mentioned on this question: http://answers.gazebosim.org/question/16802/gazebo-chair-shines-through-the-table-in-the-simulation/

chapulina gravatar imagechapulina ( 2017-12-01 10:35:21 -0600 )edit

Thanks, mind attaching the files `Large_BF_213_1.jpg` and `imitation_gold_leaf_pack_432_300x300_1.jpg` too?

sloretz gravatar imagesloretz ( 2017-12-01 13:04:16 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
1

answered 2017-12-01 13:45:28 -0600

sloretz gravatar image

updated 2017-12-01 13:47:02 -0600

Looks like blender shows the lines in Object Mode too: image description

In model.dae I see a tag called <lines> beginning on line 229. After deleting this block I no longer see the lines in gazebo 7.8.1.

<COLLADA xmlns="http://www.collada.org/2005/11/COLLADASchema" version="1.4.1">
  <!-- ... -->
  <library_geometries>
    <geometry id="Mesh14_Group5_Group_15_1_Component1_Model-mesh" name="Mesh14 Group5 Group_15_1 Component1 Model">
      <mesh>
        <!-- ...delete the block below -->
        <lines count="2444">
          <input semantic="VERTEX" source="#Mesh14_Group5_Group_15_1_Component1_Model-mesh-vertices" offset="0"/>
          <!-- lots of numbers here -->
        </lines>
        <!-- delete the block above... -->
      </mesh>
    </geometry>
  </library_geometries>
</COLLADA>
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2017-12-01 04:48:34 -0600

Seen: 43 times

Last updated: Dec 01