google / usd_from_gltf

Apache License 2.0
547 stars 85 forks source link

ASSERT(mat.Factor( &scale_orient_mat, &scale_d, &rot_mat, &translation_d, &persp_mat)) [UFG_ERROR_ASSERT] #88

Open MajorMeerkatThe3rd opened 2 years ago

MajorMeerkatThe3rd commented 2 years ago

Hello, I get this error for a model. I tracked it down to being an issue when I have a specific matrix on a node.

I get the error for this matrix (scaled and then rotated to have a different up-axis) [0.0001, 0, 0, 0, 0, 0, -0.0001, 0, 0, 0.0001, 0, 0, 0, 0, 0, 1]

But not for this one (just rotated to have a different up-axis) [1, 0, 0, 0, 0, 0, -1, 0, 0, 1, 0, 0, 0, 0, 0, 1]

It seems like there is a threshold where it is too small? Can that be?

meet2me commented 2 years ago

I'm having the same issue while converting a specific GLTF model into USDZ. However, it works for the rest of the cases. I'm attaching a gltf model in .txt format(so I can upload it here). pg.txt

Any help with such an error is appreciated. Screenshot 2022-03-08 at 3 39 17 PM