Jump to content

materials observable preloader


DezOnlyOne
 Share

Recommended Posts

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

Link to comment
Share on other sites

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. 

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...