GLTF model transparent from insdie

Hi!

I bought two GTLF models for testing out my codes. The problem is that one of them worked fine, but for the other one, the mesh becomes transparent when seen from inside.

I know it can usually be fixed with backFaceCulling=false but then when I apply texture to it, the texture is applied to the inside of the mesh as well.

I am not sure how this became a problem while the first model worked fine :frowning:

When I add shadow, the light goes through inside of the bag too. I assume it’s because the transparent part is not just color-less, but actually works as if there’s nothing.

Here are photos of them.

This one has solid(no transparent) mesh

Yet, this one becomes transparent from inside :frowning:

Screen Shot 2021-07-13 at 4.36.17 PM

With backFaceCulling=false + adding texture to it, texture is applied to the inside of the mesh as well.

Screen Shot 2021-07-13 at 4.36.24 PM

Is there a way to fix this?

Also, those two models seems to have different settings in the beginning so I feel like it can be fixed within GLTF file.

Thank you!!

That will be hard to say without a repro…

Did you try to contact the author? For the texturing problem, it has to do with the uvs, so something at the modeling stage.

1 Like

Ah, something to with modeling, huh? I think that is the most likely explanation :frowning:

I am trying to contact the author. I hope it works out.

Thanks!!