gamefan Posted April 5, 2018 Share Posted April 5, 2018 Hi, I am planning to update from 3.1 and was trying the latest preview. Some of my babylonjs files did not render because I checked that the shader material did not override isReadyForSubMesh and the base class's method always returned false. This made my app stuck here because the scene would never be ready: scene.executeWhenReady(function() { engine.runRenderLoop(function() { scene.render(); }); }); Please help. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 5, 2018 Share Posted April 5, 2018 This should not append as the engine check if material supports isReadyForSubMesh before calling it Do you have a repro in the playground? Quote Link to comment Share on other sites More sharing options...
gamefan Posted April 6, 2018 Author Share Posted April 6, 2018 Hi Deltakosh, I should have done this earlier: https://www.babylonjs-playground.com/#D6VHKG#1 There is an alert that fires on scene ready. If you comment out the lines specified, executeWhenReady triggers the alert but not when shader material is applied to a submesh. Quote Link to comment Share on other sites More sharing options...
Guest Posted April 6, 2018 Share Posted April 6, 2018 PERFECT! Bug found and fixed with next commit thanks a lot! gamefan 1 Quote Link to comment Share on other sites More sharing options...
gamefan Posted April 9, 2018 Author Share Posted April 9, 2018 No problem. I actually feel good I helped you GameMonetize 1 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.