Hi there,
I'm currently trying to read indexed UV data from an Alembic file that
was exported using the reference Maya plugin. There are no problems if
every face-vertex has an associated UV. I get into trouble though when
UVs are missing from the Maya geometry. That is, the number of UV
indices is less than the number of face indices.
If we look at MayaMeshWriter::getUVs() in the abcexport plugin:
http://code.google.com/p/alembic/source/browse/maya/AbcExport/MayaMeshWriter.cpp#94
we can see the following:
MIntArray uvCounts, uvIds;
status = lMesh.getAssignedUVs(uvCounts, uvIds, &uvSetName);
The information in uvCounts is not written out anywhere... The
assumption therefore seems to be that the UV counts should match the
polygon face counts (the number of vertices per face.) If we are
missing UVs though, this assumption no longer holds.
Is this an oversight in the abcexport plugin or am I missing
something? (probably the latter! :)
Many thanks,
- Andrew