kcoley / gltf2usd

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

Material not rendering with some Animations models #46

Closed wave-electron closed 5 years ago

wave-electron commented 5 years ago

Has anyone else successfully assigned materials or solid colors to multiple faces incorporating animations?

So you might have a single mesh broken into mulitple faces, like animating a dinosaur, separate material assignment for say the eyes, body & claws. So 3 separate png files will be in the usdz archive each assigned to 3 different faces.

I have successfully created several animations incorporating animations with only 1 material assignment for single mesh. All my posted bone animations on fusionar gallery were built with only one material assignment for a single mesh.

Note: For models that don't have any animations material assignment is working fine. It only seems to happen with models that incorporate animation.

I had a look at the usda file.... it seems to have

kcoley commented 5 years ago

Hi @wave-electron. Are you referring to multiple material assignments to a single mesh? I think that is something that glTF 2.0 currently does not support. Unless you are referring to something else?

wave-electron commented 5 years ago

Yes. Ok I didn’t know that about glTF 2.0. It’s probably better practice just having the single material assignment anyway.

On Wednesday, 12 September 2018, Kacey Coley notifications@github.com wrote:

Hi @wave-electron https://github.com/wave-electron. Are you referring to multiple material assignments to a single mesh? I think that is something that glTF 2.0 currently does not support. Unless you are referring to something else?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kcoley/gltf2usd/issues/46#issuecomment-420316272, or mute the thread https://github.com/notifications/unsubscribe-auth/APhRdIaEy_hC61_fHNAW1TBQe0H8xEkMks5uZ9dvgaJpZM4Wgzh0 .