yagmur Posted November 21, 2018 Share Posted November 21, 2018 Hello, i have been started working with BJS short time ago. I couldn't understand the using rebuild method. I have one issue i think i can solve that with rebuild method but i coluldn't understand how to use it. Can somebody explain it pls? Quote Link to comment Share on other sites More sharing options...
JohnK Posted November 21, 2018 Share Posted November 21, 2018 Hi @yagmur and welcome to the forum. In order to help more information is needed. As a minimum which class are you using rebuild with? Even better a description of what you are trying to achieve and even better still a playground example. Quote Link to comment Share on other sites More sharing options...
Sebavan Posted November 21, 2018 Share Posted November 21, 2018 the rebuild mehod is here to help with context lost. I do not think we are using it for other purposes. Quote Link to comment Share on other sites More sharing options...
brianzinn Posted November 21, 2018 Share Posted November 21, 2018 There's a (public hidden) rebuild method on textures as well. I use it for HMR. Also, rebuild() on the pipeline processing among others Quote Link to comment Share on other sites More sharing options...
JohnK Posted November 21, 2018 Share Posted November 21, 2018 A search in the docs for rebuild lists 31 classes in the API? Quote Link to comment Share on other sites More sharing options...
Sebavan Posted November 21, 2018 Share Posted November 21, 2018 Yup it is on every things attached to webgl to ensure we can recreate them in case of context lost. Quote Link to comment Share on other sites More sharing options...
Buzul Posted November 22, 2018 Share Posted November 22, 2018 Hi guys good mornings and evenings.. I know Yagmur's problem, she is my colleague, i'm writing just for detail information. She is try to do save the page from the context lost error. For this case she found the rebuild methot, and read documents; however she caught, she needs yours helps. Quote Link to comment Share on other sites More sharing options...
Sebavan Posted November 22, 2018 Share Posted November 22, 2018 It would be great to have more details on the use case and what you are trying to achieve ? Cause about the first question: How to use it ? usually, you should not do it on your own and let Babylon deal with it cause the engine hooks already in the ContextLost Event to prevent this issue. 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.