BMWPilote Posted September 11, 2018 Share Posted September 11, 2018 I need to freeze my materials for my static scene. However I am not sure when to freeze them safely? I tried to call freezeMateiral right after assigning the textures. But the result was that the textures could never been displayed. I tried to free them using BABYLON.Texture.WhenAllReady callback. But it did not worker either. I needed to add a large timeout to make sure that all the materials were ready. So my question is whether we have a way by which we can 100% be sure that the material is really ready (including opengl texture) so that I can call freeze safely? Quote Link to comment Share on other sites More sharing options...
trevordev Posted September 11, 2018 Share Posted September 11, 2018 Could you create a playground reproducing what you are describing? Thanks Quote Link to comment Share on other sites More sharing options...
Guest Posted September 11, 2018 Share Posted September 11, 2018 (you can also try to use the material.onCompiled callback) 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.