apptaro Posted July 19, 2018 Share Posted July 19, 2018 I have some GLTF files which BabylonJS renders incorrectly; some faces are in wrong direction. Cesium renders correctly, Three.js renders incorrectly as the same as BabylonJS. GLTF files are converted from DAE with COLLADA2GLTF 2.1.2 for Win64. I have attached the zip containing .dae and .gltf. I wonder if it's a bug of BabylonJS, or a bug of COLLADA2GLTF. data.zip Quote Link to comment Share on other sites More sharing options...
Guest Posted July 19, 2018 Share Posted July 19, 2018 Hello can you try to validate the file with http://github.khronos.org/glTF-Validator/ ? Pinging @bghgary Quote Link to comment Share on other sites More sharing options...
bghgary Posted July 19, 2018 Share Posted July 19, 2018 Looks like the left arm asset has a negative scale on it which according to spec is supposed to flip the triangles. Looks like Cesium doesn't handle this properly. You can test this using asset 01 from the negative scale tests from the asset generator project. I'll send a note to Cesium to let them know about this. I think the source DAE model is wrong. If I import the left-arm.dae into Unity, the same thing happens where all the triangles are flipped. GameMonetize 1 Quote Link to comment Share on other sites More sharing options...
apptaro Posted July 20, 2018 Author Share Posted July 20, 2018 8 hours ago, Deltakosh said: Hello can you try to validate the file with http://github.khronos.org/glTF-Validator/ ? Pinging @bghgary @Deltakosh The validator says "The asset is valid." Quote Link to comment Share on other sites More sharing options...
apptaro Posted July 20, 2018 Author Share Posted July 20, 2018 9 hours ago, bghgary said: Looks like the left arm asset has a negative scale on it which according to spec is supposed to flip the triangles. Looks like Cesium doesn't handle this properly. You can test this using asset 01 from the negative scale tests from the asset generator project. I'll send a note to Cesium to let them know about this. I think the source DAE model is wrong. If I import the left-arm.dae into Unity, the same thing happens where all the triangles are flipped. @bghgary You are right. I imported the left arm .dae to Blender and I found that the triangles are flipped. The .dae file, Cesium and my dae viewer based on papervision3d were the wrong ones. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.