Showing the scene after the scene renders everything

:exclamation: :person_raising_hand: IMPORTANT! PLEASE REPRODUCE YOUR ISSUE ON THE Playground FIRST! :person_raising_hand: :exclamation:

:thinking: Before asking a question

  • :mag_right: Search about your issue on the documentation. Maybe the problem you have is just a matter of understanding how the API works?
  • :mag_right: Search about your issue on the forum. Maybe someone else already had the same problem?

:question: How to ask a good question

  • :thought_balloon: Write a title that summarizes the specific problem: A good title will help others identify what are you talking about quickly.

    • Bad example: Shadow problem
    • Good example: Imported meshes on my scene don’t cast shadows
    • Bad example: Issue with GUI
    • Good example: GUI Button isn’t displayed on VR Session
  • :building_construction: Reproduce your issue on the Playground: This is the MOST IMPORTANT STEP! If we can see what you have tried on the Playground, and what the result of this is, we are much more likely to get what’s going on! And even if your problem is not happening on the Playground, but only on your environment, this already can give us clues what’s going on.

  • :person_in_lotus_position: Be patient: The team and forum users are all on different time zones, so your question might take a few hours to be seen. We try to answer everything as fast as we can, but remember we’re not robots :robot:

:package: Resources

Hello folks,

So I have a 3d Model sitting in a S3 Bucket which has no textures at all, the textures are on a S3 bucket.

So when I fetch the model using AppendAsync, after retrieving this model I am applying the textures to it that are coming from the S3 bucket.

Where would be the best place to put this logic in for example I am having all this logic inside the onSceneReady function. Which I understood it runs after the scene is ready to render stuff.

But my problem is that sometimes the babylon js loader is being removed while the textures are still being rendered. How can I wait that all textures are loaded and rendered then show the user the scene.

Thank you in advance !

What do you mean by the loader being “removed”? The textures also have an isReady method.

Also as the template for questions mentions (straight screen cap from your post :slight_smile: )

This would help us a lot