javascript - Three.js: How to know if all the textures are fully loaded and shown (and no black rectangles remains)? -
I am working on a web application where the user creates a home that he wants and then it previews in 3D Can do. When the browser does not support WebGL, the home is rendered on the server and some screenshots are sent to the customer. However, if screenshots are brought soon, then some textures will not be displayed and they will be replaced with black colored rectangles.
Three. In js, is there an incident firing or is there a way to tell when or when all the textures are fully loaded and shown?
As of now, this is the best I found. If anyone finds a better solution, please let me know.
three. Default Loading Manager Progress = action (item, load, total) {// all textures are loaded upon loading === total};
Thanks for the reply to JPS:
Comments
Post a Comment