Exocortex / ExocortexCrate

http://exocortex.com/products/crate
BSD 3-Clause "New" or "Revised" License
134 stars 68 forks source link

3DSMAX disabling modifier when poly/vertex count not match #23

Open ymoriaud opened 9 years ago

ymoriaud commented 9 years ago

Hi everyone,

I have an issue with Exocortex Crate 1.1.145 for 3DSMAX​ 2015​.

I'm trying to import an Alembic file with the Alembic Mesh Geometry modifier on a mesh ​that haven't the same number of polys and vertex. The classic behavior results in 3DSMAX instantly​ crash​ing​​. In that way, I can't debug my scene for finding buggy objects.

Do you​ know if it's possible to disable the Alembic Mesh Geometry modifier i​n the case of​ the number of vertex doesn't match the ​original ​Alembic file ?

Let me know if you need more informations, Have a nice day,

Yann.

bhouston commented 9 years ago

We do actually do a lot of validation in the code when loading data.

Here is the validation of normal counts:

https://github.com/Exocortex/ExocortexCrate/blob/6c170c812b5f9e4c40d6a1718888ad955ed38129/3DSMax/AlembicMeshUtilities.cpp#L374

Validation of vertex counts:

https://github.com/Exocortex/ExocortexCrate/blob/6c170c812b5f9e4c40d6a1718888ad955ed38129/3DSMax/AlembicMeshUtilities.cpp#L374

Resizing of vertex array to match what is in the Alembic file:

https://github.com/Exocortex/ExocortexCrate/blob/6c170c812b5f9e4c40d6a1718888ad955ed38129/3DSMax/AlembicMeshUtilities.cpp#L374

Validating UV indices:

https://github.com/Exocortex/ExocortexCrate/blob/6c170c812b5f9e4c40d6a1718888ad955ed38129/3DSMax/AlembicMeshUtilities.cpp#L374

If you want to add more validation, could you do a PR?