jpcy / xatlas

Mesh parameterization / UV unwrapping library
MIT License
2.06k stars 221 forks source link

Question regarding instantiated meshes #137

Open sigvald opened 1 month ago

sigvald commented 1 month ago

Regarding instantiated meshes like in this scene that contains 2 instances of the cube object, I am surprised to see that there are 12 faces in the generated UV map. I would have instead expected only 6 faces because the same mesh is present twice.

This is just a test scene but the models I plan to work with will be much more complex and if XAtlas doesn't take instantiation into account then I can expect huge UV maps that would hinder performances.

Is there something I'm missing?

Thank you for your help.

InstantiatedScene