udvlpr / alembic

Automatically exported from code.google.com/p/alembic
Other
0 stars 0 forks source link

maya AbcImport does not create creases in geomtery from AlembicNode #311

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Geometry comming from AlembicNode lacks creases on "SubD" mesh.

What steps will reproduce the problem?

1. Make .abc with animated mesh with creases
2. Import .abc, observe no creases.

Attached patch adds such support, but performance is not optimal because
it builds hash map of vertex pairs to edges, instead of using MItMeshVertex.
MItMeshVertex can't be used because MFnMesh::object() returns null,
probably because it is created with MFnMesh::createInPlace().

Original issue reported on code.google.com by sop...@gmail.com on 26 Aug 2013 at 7:36

Attachments:

GoogleCodeExporter commented 8 years ago
Could you attach a very simple Alembic asset with animated creases?
Hopefully there is a more optimal way than what is outlined in your patch.

Original comment by miller.lucas on 26 Aug 2013 at 7:34

GoogleCodeExporter commented 8 years ago
It's not about animated creases, creases are static. It's a usual subdiv with 
creases and animated vertices.

readSubD(..) in MeshHelper.cpp is used when creating data for outputting from 
AlembicNode attribute, and it does not restore creases.

Static meshes are created with createSubD(..) in MeshHelper.cpp, and it does 
restore creases.

I've tried using same code as in createSubD(..) but it fails on MItMeshVertex 
creation with NullObj error. And indeed ioMesh.object() is null at that point, 
but other methods on ioMesh work.

Attached simple cube with animated points, and picture of how it should look.

Original comment by sop...@gmail.com on 28 Aug 2013 at 6:48

Attachments:

GoogleCodeExporter commented 8 years ago

Original comment by miller.lucas on 13 Sep 2013 at 6:17

GoogleCodeExporter commented 8 years ago
Fix pushed here, and will be released with Alembic 1.5.1:
http://code.google.com/r/millerlucas-dev/source/detail?r=73581b5d7d28c49e4e32321
f76880d01a46d06bf

Original comment by miller.lucas on 17 Sep 2013 at 6:54

GoogleCodeExporter commented 8 years ago

Original comment by miller.lucas on 19 Sep 2013 at 8:12