KhronosGroup / OpenCOLLADA

652 stars 252 forks source link

inputs array reads 6 indices, but only enough indices for 5 indices per vertex #63

Closed KhronosWebservices closed 11 years ago

KhronosWebservices commented 12 years ago

What steps will reproduce the problem?

The only repro model I have is very very large.

What is the expected output? What do you see instead?

Here is part of the output. The <p> element only contains 11760 indices, instead of the 14112 expected.

    &lt;vertices id=&quot;geom-Sphere01-vertices&quot; name=&quot;geom-Sphere01-vertices&quot;&gt;
      &lt;input semantic=&quot;POSITION&quot; source=&quot;#geom-Sphere01-positions&quot;/&gt;
    &lt;/vertices&gt;
    &lt;triangles material=&quot;DefaultSG&quot; count=&quot;784&quot;&gt;
      &lt;input semantic=&quot;VERTEX&quot; source=&quot;#geom-Sphere01-vertices&quot; offset=&quot;0&quot;/&gt;
      &lt;input semantic=&quot;NORMAL&quot; source=&quot;#geom-Sphere01-normals&quot; offset=&quot;1&quot;/&gt;
      &lt;input semantic=&quot;TEXCOORD&quot; source=&quot;#geom-Sphere01-geom-Sphere01-map1&quot; offset=&quot;2&quot; set=&quot;0&quot;/&gt;
      &lt;input semantic=&quot;COLOR&quot; source=&quot;#geom-Sphere01-geom-Sphere01-map-1&quot; offset=&quot;3&quot;/&gt;
      &lt;input semantic=&quot;COLOR&quot; source=&quot;#geom-Sphere01-geom-Sphere01-map0&quot; offset=&quot;4&quot;/&gt;
      &lt;input semantic=&quot;TEXTANGENT&quot; source=&quot;#geom-Sphere01-textangents&quot; offset=&quot;5&quot; set=&quot;0&quot;/&gt;
      &lt;input semantic=&quot;TEXBINORMAL&quot; source=&quot;#geom-Sphere01-texbinormals&quot; offset=&quot;5&quot; set=&quot;0&quot;/&gt;
      &lt;p&gt;... 11760 entries, not 14112 &lt;/p&gt;

What version of the product are you using? On what operating system?

Maya 2011, windows xp, OpenCOLLADA_Maya_1.3.0rc1.7z

Migrated from http://code.google.com/p/opencollada/issues/detail?id=115


earlier comments

martin.b...@gmail.com said, at 2010-10-22T19:04:46.000Z:

This was on a file that had been exported from max using openColladaMax and then imported into maya using openColladaMaya, before being exported again.

schwarz@netalliedsystems.com said, at 2010-10-25T09:22:11.000Z:

please provide us with the corresponding .ma or .max file to reproduce the error. Thanks

martin.b...@gmail.com said, at 2010-11-12T21:59:35.000Z:

Here's another file that exhibits the symptoms. We managed to localize it to a single object, and this is the only object in the file. Our artist thinks it has something to do with the "object history" because he sent me a version with this deleted and it exported OK. Regardless, the resulting collada file is malformed, since the accessor specifies 7 indices per vertex, but there are only enough indices for 5 indices per vertex.

fabrobinet commented 11 years ago

commit is da9f1c3d5da28d475f35ff1175d60cb74fa0f661

fabrobinet commented 11 years ago

checked that we got no coherency check error after re-export. Closing.