UnityGLTF icon indicating copy to clipboard operation
UnityGLTF copied to clipboard

Texturing mapping U coordinates are wrong when importing into BabylonJS

Open justinctlam opened this issue 8 years ago • 2 comments

@bghgary @blgrossMS This in reference to #111. I see that the fix is to negate the X part of the coordinate. But doesn't this break the texture mapping U coordinates? When I import a GLTF exported with this code, the texture mapping is flipped horizontally. Since BabylonJS doesn't reverse the X coordinate by negating it, rather BabylonJS rotates the mesh by 180 degrees, is this conversing broken?

Either the export doesn't negate the X but does a 180 degree rotation or BabylonJS negates the X coordinate and not do the rotation.

Thoughts?

justinctlam avatar Feb 20 '18 18:02 justinctlam

Are you still noticing this issue?

blgrossMS avatar Feb 26 '18 16:02 blgrossMS

@blgrossMS Sorry for not adding additional info why I closed it. It was actually a user error on my part. Although, the normal mapping and metallicroughness texture is not working correctly through the exporter, which I will take a stab at fixing.

justinctlam avatar Feb 26 '18 18:02 justinctlam