Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Faces missing when importing #58

Open
ArcadiaLabs opened this issue Feb 18, 2020 · 7 comments
Open

Faces missing when importing #58

ArcadiaLabs opened this issue Feb 18, 2020 · 7 comments
Labels
bug Something isn't working

Comments

@ArcadiaLabs
Copy link

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

@Siccity
Copy link
Owner

Siccity commented Feb 18, 2020

Does the console log say anything when importing?

@Siccity Siccity added the bug Something isn't working label Feb 18, 2020
@ArcadiaLabs
Copy link
Author

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

@luizcarlosfx
Copy link

luizcarlosfx commented Feb 26, 2020

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

@Siccity
Copy link
Owner

Siccity commented Feb 26, 2020

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

@subhradeepc
Copy link

Any updates on this ? Getting the same issue as well

@Siccity
Copy link
Owner

Siccity commented Sep 10, 2021

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?

@Holi0317
Copy link

Holi0317 commented Nov 24, 2021

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: KhronosGroup/glTF-Blender-IO#154 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants