LayerElementUV
Opened this issue · 3 comments
I have a file using this:
LayerElementUV: 0 {
Version: 101
Name: "uv"
MappingInformationType: "ByPolygonVertex"
ReferenceInformationType: "IndexToDirect"
Which means the UV has it's own set of indexes does your code work with this? The GetTexCoords don't seem to be right.
The problem appears to be this line in your code:
texCoords.Add(ParseVertexAsVector2(layerValues, layerIndices, mappingMode, referenceMode, vertexIndex));
the line vertexIndex++; needs to be inside the inner for loop.
@sjc1832 sorry for such a long delay in replying shoudl be able to go full swing again now. I think the issue may be in
private int ParseVertexIndex(int[] layerIndices, string mappingNode, string referenceMode, int controlPointIndex, int vertexindex)
Would you be able to send a test file so that i can try diagnose...
@sjc9999 I am running into the same problem but with all of them including normals and such. Did you find a final solution? I moved the counter to inside but it gives me a out of bounds index. I know this is from quite awhile ago but was hoping you could still dig it up :).