DezOnlyOne Posted February 8, 2017 Share Posted February 8, 2017 Is there a way to know if all the materials that have been created in a scene are done rendering without continually querying all the materials to find out if they are ready(material.isReady)? I am using several PBR materials and I have a screen that covers the scene until all the meshes are loaded, but I want to keep the scene from popping in materials after the screen is gone. Here is what I am working on for an example http://protest.jht.com/gea_engines101_new/ Thanks in advance Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted February 8, 2017 Share Posted February 8, 2017 Hey! So far the only way is to query material.isReady as you mentioned. I was thinking about adding an observable, but the result would be the same: you will need to register to all material and wait for all events (so you need a tracking number) to be raised Quote Link to comment Share on other sites More sharing options...
DezOnlyOne Posted February 8, 2017 Author Share Posted February 8, 2017 44 minutes ago, Deltakosh said: Hey! So far the only way is to query material.isReady as you mentioned. I was thinking about adding an observable, but the result would be the same: you will need to register to all material and wait for all events (so you need a tracking number) to be raised Thanks man. I appreciate everything. 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.