kcoley / gltf2usd

command-line utility for converting glTF 2.0 models to USD
MIT License
263 stars 39 forks source link

Transparency Issue when converting glTF to usdz #88 #95

Closed ShantanuSriv closed 5 years ago

ShantanuSriv commented 5 years ago

Reopening as transparency issue is still not handled. #88

kcoley commented 5 years ago

Hi @ShantanuSriv do you have a sample glTF model I can use for reference?

ShantanuSriv commented 5 years ago

@kcoley No, I can't share the glTF model because it's a private proprietary. I can share the screenshots only.

Please tell me if I can help you in any way possible.

kcoley commented 5 years ago

@ShantanuSriv no worries, I have a few questions then:

  1. In the glTF files, are any of the base color textures shared across multiple materials which have different blend modes? For example, one material uses opaque, while the other uses alpha blend, but the exact same base color texture?

  2. Are the glTF models using specular glossiness or metallic roughness?

  3. Do the glTF models use alpha in the vertex colors?

  4. Are any of the glTF models using alpha mask?

If any questions need more detail, please let me know

ShantanuSriv commented 5 years ago

In the glTF files, are any of the base color textures shared across multiple materials which have different blend modes? For example, one material uses opaque, while the other uses alpha blend, but the exact same base color texture?

Yes, we have this case in some of the glTF files

Are the glTF models using specular glossiness or metallic roughness?

Metallic roughness

Do the glTF models use alpha in the vertex colors?

No

Are any of the glTF models using alpha mask?

No

Some of the answers may vary on the size of the sample of glTF models. But as of now, in my sample set, I have these verified.

kcoley commented 5 years ago

@ShantanuSriv gotcha. I'm guessing case 1 may be a possible issue here. I can make a change to duplicate the texture without alpha if it is shared across two different materials with different blend modes to see if that helps.

kcoley commented 5 years ago

@ShantanuSriv I pushed another update to master: https://github.com/kcoley/gltf2usd/pull/96

Does this help or is the problem still persisting?

kcoley commented 5 years ago

@ShantanuSriv closing for now, but feel free to reopen if the issue is still coming up