Gazebo | Ignition | Community
Ask Your Question
0

ColladaLoader Unable to add material

asked 2018-12-03 04:14:58 -0500

Eisenhorn gravatar image

Hello,

When loading a model exported by Blender I get a lot (in the hundrets) of warnings like this:

[Wrn] [ColladaLoader.cc:1747] Unable to add material[Color_243_6379-material]
[Wrn] [ColladaLoader.cc:1747] Unable to add material[Color_243_6453-material]
[Wrn] [ColladaLoader.cc:1747] Unable to add material[Color_243_6103-material]

This appears to slow down loading of the model as it takes a couple of minutes (the model is rather big tough 70 MB).

The model is a collada file.

In the model I can see a color library:

  <library_materials>
    <material id="Color_242-material" name="Color_242">
      <instance_effect url="#Color_242-effect"/>
.
.
.

The color effect is embedded in the very same collada file.

<library_effects>
    <effect id="Color_242-effect">
      <profile_COMMON>
        <technique sid="common">
          <phong>
            <emission>
              <color sid="emission">0 0 0 1</color>
            </emission>
            <ambient>
              <color sid="ambient">1 1 1 1</color>
            </ambient>
            <diffuse>
              <color sid="diffuse">0.0864 0.0864 0.1488 1</color>
            </diffuse>
            <specular>
              <color sid="specular">0.25 0.25 0.25 1</color>
            </specular>
            <shininess>
              <float sid="shininess">255</float>
        </shininess>
        <index_of_refraction>
          <float sid="index_of_refraction">1</float>
        </index_of_refraction>
      </phong>
    </technique>

So my questions:

1.) Can searching for the material slow down loading 2.) Does anybody see the mistake I did? Can we get the material get loaded? Where sould they be? 3.) Can I force ColladaLoadar to ignore the material information?

BR

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-12-06 10:51:25 -0500

nkoenig gravatar image

1) Searching for the material might slow down the loading a bit. You could try profiling the code. 2) We would need to see the complete DAE file. 3) You can't force the collada loader to ignore the material information.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-12-03 04:14:58 -0500

Seen: 944 times

Last updated: Dec 06 '18