I'm using the OpenCOLLADA plugin (1.2.2.674) for Maya 2010 (64bit).
When trying to export a single polygon (a triangle), the geometry
description gets all confused with some "inputs" winding up in the
"vertices" section (instead of the "triangles" one):
<vertices id="polygon_MSHShape-vertices"
name="polygon_MSHShape-vertices">
<input semantic="POSITION" source="#polygon_MSHShape-positions"/>
<input semantic="NORMAL" source="#polygon_MSHShape-normals"/>
<input semantic="COLOR" source="#polygon_MSHShape-colorSet1"/>
</vertices>
<triangles material="coloredChecker_SHDSG" count="1">
<input semantic="VERTEX" source="#polygon_MSHShape-vertices"
offset="0"/>
<input semantic="TEXCOORD" source="#polygon_MSHShape-map1"
offset="1" set="0"/>
<p>0 0 1 1 2 2</p>
</triangles>
But if I split this polygon in two (giving two triangles instead of one)
then everything is fine:
<vertices id="polygon_MSHShape-vertices"
name="polygon_MSHShape-vertices">
<input semantic="POSITION" source="#polygon_MSHShape-positions"/>
</vertices>
<triangles material="coloredChecker_SHDSG" count="2">
<input semantic="VERTEX" source="#polygon_MSHShape-vertices"
offset="0"/>
<input semantic="NORMAL" source="#polygon_MSHShape-normals"
offset="1"/>
<input semantic="TEXCOORD" source="#polygon_MSHShape-map1"
offset="2" set="0"/>
<input semantic="COLOR" source="#polygon_MSHShape-colorSet1"
offset="3"/>
<p>0 0 0 0 3 1 3 0 2 2 2 0 0 3 0 0 1 4 1 0 3 5 3 0</p>
</triangles>
Now if I also use the "exportTexTangents=1" option, it gets even more
confused (the "NORMAL" element is still in the wrong section and the
"offset" numbers are wrong):
<vertices id="polygon_MSHShape-vertices"
name="polygon_MSHShape-vertices">
<input semantic="POSITION" source="#polygon_MSHShape-positions"/>
<input semantic="NORMAL" source="#polygon_MSHShape-normals"/>
</vertices>
<triangles material="coloredChecker_SHDSG" count="1">
<input semantic="VERTEX" source="#polygon_MSHShape-vertices"
offset="0"/>
<input semantic="TEXCOORD" source="#polygon_MSHShape-map1"
offset="1" set="0"/>
<input semantic="COLOR" source="#polygon_MSHShape-colorSet1"
offset="2"/>
<input semantic="TEXTANGENT"
source="#polygon_MSHShape-textangents" offset="3" set="0"/>
<input semantic="TEXBINORMAL"
source="#polygon_MSHShape-texbinormals" offset="3" set="0"/>
<p>0 0 0 0 1 1 0 1 2 2 0 2</p>
</triangles>
Finally, when exporting just a single polygon (a triangle), invisible nodes
are also getting exported (even though the option "exportInvisibleNodes" is
set to 0).
Original issue reported on code.google.com by seit...@gmail.com on 19 Mar 2010 at 8:21
Original issue reported on code.google.com by
seit...@gmail.com
on 19 Mar 2010 at 8:21