cx20 Posted December 10, 2017 Share Posted December 10, 2017 I tried to display the glTF model with the latest version of Babylon.js (v3.1 rc-1). However, it seems that some models do not display properly. BoxTextured ... Texture is not displayed BoxAnimated ... Animation only works partially RiggedSimple, RiggedFigure, CesiumMan, Monster, BrainStem, VirtualCity ... Animation does not work https://cx20.github.io/gltf-test/examples/babylonjs/index.html?model=BoxTextured&scale=1 https://cx20.github.io/gltf-test/examples/babylonjs/index.html?model=BoxAnimated&scale=0.5 https://cx20.github.io/gltf-test/examples/babylonjs/index.html?model=RiggedSimple&scale=0.2 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted December 11, 2017 Share Posted December 11, 2017 Pinging @bghgary Quote Link to comment Share on other sites More sharing options...
bghgary Posted December 11, 2017 Share Posted December 11, 2017 The animation is because the default behavior of the loader for playing animations has changed. The default behavior before played all the animations. The new default behavior plays just the first animation. See https://github.com/KhronosGroup/glTF/issues/1052 and https://github.com/KhronosGroup/glTF-Sample-Models/issues/108 for more information about this. The sample models will be updated (hopefully soon) such that playing the first animation will behave correctly. In the meantime, if you want the old behavior to play all the animations, you can now specify a new property animationStartMode on the loader to play all the animations at once. The black texture thing is a different issue that only happens for webgl1. I'll look into that separately. cx20 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted December 11, 2017 Share Posted December 11, 2017 Black texture is fixed by latest nightly https://github.com/BabylonJS/Babylon.js/pull/3365/commits/0c5c647a1fb468c5afdc529dfd310d869b92794b bghgary and cx20 2 Quote Link to comment Share on other sites More sharing options...
cx20 Posted December 12, 2017 Author Share Posted December 12, 2017 I confirmed that the sample below works with Babylon.js v3.1-rc-2. https://cx20.github.io/gltf-test/examples/babylonjs/index.html?model=BoxTextured&scale=1https://cx20.github.io/gltf-test/examples/babylonjs/index.html?model=BoxAnimated&scale=0.5https://cx20.github.io/gltf-test/examples/babylonjs/index.html?model=RiggedSimple&scale=0.2 I would like to test again when the sample model is updated. bghgary 1 Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted December 12, 2017 Share Posted December 12, 2017 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.