prefrontalcortex / UnityGLTF

Runtime GLTF Loader for Unity3D
MIT License
163 stars 41 forks source link

GLTF model broken in Unity Editor #50

Closed fashioncoolwan closed 2 years ago

fashioncoolwan commented 2 years ago

See here: https://github.com/KhronosGroup/UnityGLTF/issues/654

hybridherbst commented 2 years ago

Thanks - just to clarify, is this on the KhronosGroup dev branch (which equals the prefrontal cortex repo dev branch)?

fashioncoolwan commented 2 years ago

Thanks - just to clarify, is this on the KhronosGroup dev branch (which equals the prefrontal cortex repo dev branch)?

No,i'm using prefrontalcortex project, 1.6.1 pre and 1.10.0 pre.

hybridherbst commented 2 years ago

Thanks! I can reproduce, but unfortunately it looks like this is a Unity bug with their Unwrapping.GenerateSecondaryUVSet method incorrectly splitting up vertices. I'll investigate a bit more what the issue might be, and potentially report a bug to Unity.

What looks wrong to me in the model are some flipped faces: image image

Maybe you can try resolving those and see if that helps?

hybridherbst commented 2 years ago

Same with the other model, some faces look wrongly flipped: image

fashioncoolwan commented 2 years ago

Same with the other model, some faces look wrongly flipped: image

Thanks! I'll try it.

hybridherbst commented 2 years ago

Closing since this is unfortunately a Unity bug, can't do much about it...