waverider Posted February 11, 2018 Share Posted February 11, 2018 My gltf model looks transparent, the material is fine..what could have been wrong? https://www.babylonjs-playground.com/#11BH6Z#326 Quote Link to comment Share on other sites More sharing options...
Wingnut Posted February 11, 2018 Share Posted February 11, 2018 Hi waverider. There is some difference/issue with Latest/Stable versions of BJS. https://www.babylonjs-playground.com/indexstable#11BH6Z#327 That one looks much better (stable version). Let's ping @Deltakosh for this one. It might be next week before any activity happens, so, party on with the "stable version" for a little while. Thx for the report/playground, and for your patience. waverider 1 Quote Link to comment Share on other sites More sharing options...
waverider Posted February 11, 2018 Author Share Posted February 11, 2018 No problem Quote Link to comment Share on other sites More sharing options...
Guest Posted February 12, 2018 Share Posted February 12, 2018 Pinging @bghgary Quote Link to comment Share on other sites More sharing options...
bghgary Posted February 12, 2018 Share Posted February 12, 2018 It looks like everything is inside out. Let me see if I can figure out why. Quote Link to comment Share on other sites More sharing options...
Wingnut Posted February 12, 2018 Share Posted February 12, 2018 Hiya B. Hiya DK. Guys, be sure to read posts in this thread, too. Reminder: Problem is gone... when "stable" version of BJS is chosen. (sorry if this was unnecessary reminder) Quote Link to comment Share on other sites More sharing options...
bghgary Posted February 13, 2018 Share Posted February 13, 2018 This is a problem with the asset itself. The triangle winding order is wrong in the asset. glTF expects a specific triangle winding order as noted here. The reason why it worked in the stable version and doesn't work in the current version is two-fold: The current version of Babylon will now auto flip faces when there is a negative scale in the transform. The Playground scene is overwriting the scale of the root node of asset, removing the negative z-scale it had. The negative z-scale is done to convert the asset from right-handed (glTF) to left-handed (Babylon). The asset looks to be left-handed data written into a glTF. This works in the previous stable version since the engine doesn't auto flip the faces and the negative z-scale had been removed manually, so effectively the winding order changed. With the latest version, this "trick" won't work anymore. As an alternative, if you don't want to fix the asset, one way to work around this is to change the sideOrientation of the material. https://www.babylonjs-playground.com/#11BH6Z#328 Wingnut and waverider 1 1 Quote Link to comment Share on other sites More sharing options...
waverider Posted February 13, 2018 Author Share Posted February 13, 2018 ^_^ ^_^thanks!!!!!!! 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.