23-03-2022, 02:45 AM
(24-02-2022, 08:01 AM)josemendez Wrote: Hi,
Looks like Unity decided to change vertex ordering for those meshes. Cloth generation (and many other processes) is dependant on vertex order: the order in which vertices appear in the mesh is assumed to be the same used when generating the blueprint.
However at a couple points in Unity's history, a Unity version decided to reorder vertices for certain meshes. For instance, Unity 2019.1 added "mesh optimization" by default that reordered vertices for *all* meshes. This caused cloth blueprints that were created with previous versions to appear garbled, since the vertex order assumes by the cloth does not match the vertex order used by Unity. Seems to be the case again with one of the newer Unity releases.
Note this isn't a bug in Obi or Unity, is just that they don't "agree" on the vertex order because at some point Unity decided to change it. This will only affect cloth blueprints created with a Unity version older than the one that decided to reorder the vertices. If you create new cloth blueprints in 2021.2.7f1c1 for instance, there will be no issue. Only blueprints created in an older Unity version (the ones in the sample scenes were created in 2019.3) will look garbled when loaded in a newer Unity version that doesn't use the same order.
Similarly, if you click "Generate" again in the blueprints used by these sample scenes and re-do their setup, Obi will pick up Unity's new vertex order and the issue will go away.
kind regards,
hey thanks for this post, I also was getting it but i dont know why today i made a new project and updated to jobs 0.50.0 preview 8 and using newest 6.4 and it worked right