GLTFUtility icon indicating copy to clipboard operation
GLTFUtility copied to clipboard

Faces missing when importing

Open ArcadiaLabs opened this issue 5 years ago • 7 comments

Hi, I made a model in Sketchup and exported it to gltf using the Khronos plugin. When I import the gltf in Unity, some faces are missing, while everything looks good in the Windows 3D viewer (and sketchup, obviously).

I'm not sure if I'm doing something wrong or if there is a bug in the importer.

Edit : seems there is something wrong with the Khronos gltf exporter itself : I opened the gltf directly in Unity without using your GLTFUtility, and I have the same issue. I also redesigned the missing face without success. Now I don't understand why it looks good in the windows 3d viewer...

Here is the gltf file : house_2.zip The missing face is the top floor upper face. It should look like this (screenshot from windows 3d viewer) : house_2 But in unity, the top face is missing : house_2_unity1 while the bottom face looks ok : house_2_unity2

ArcadiaLabs avatar Feb 18 '20 03:02 ArcadiaLabs

Does the console log say anything when importing?

Siccity avatar Feb 18 '20 06:02 Siccity

No, there is no error in the console when importing. I also imported the gltf to online gltf viewers, and they look ok.

ArcadiaLabs avatar Feb 18 '20 14:02 ArcadiaLabs

I think your importer may not be importing correctly the double sided option, from what I see your doubleSided property on GltfMaterial is never used. The correct use is setting the Culling property in the material according to this property

luizcarlosfx avatar Feb 26 '20 19:02 luizcarlosfx

Nice find! Yes that could very well be it. I will have a look at that asap

Siccity avatar Feb 26 '20 19:02 Siccity

Any updates on this ? Getting the same issue as well

subhradeepc avatar Sep 08 '21 17:09 subhradeepc

Any updates on this ? Getting the same issue as well

Can you check if maybe the face is there when you look at it from its backside?

Siccity avatar Sep 10 '21 06:09 Siccity

Seems that #118 will fix this issue. Didn't go through the whole PR but seems the change did mention doubleSided and culling.

In the meantime I am adding solidify modifier to my blender model before export to gltf as a workaround described here: https://github.com/KhronosGroup/glTF-Blender-IO/issues/154#issuecomment-455747814

Holi0317 avatar Nov 24 '21 03:11 Holi0317