Jump to content

Show scene while engine loading it


V!nc3r
 Share

Recommended Posts

Hi guys,

I've started to try playing with custom loading screen (it's fun), and I have a little idea: show in wireframe mode the scene while loading. This can lead to a cool effect I think.

But is it even possible? Because for now if I well understand, the engine show the first render of the scene only when all assets are loaded (that's make sense ;)), but is it possible to tell it to show while "building" the meshes?

(Sorry I don't know how to reproduce a loading screen in the playground to play around)

Link to comment
Share on other sites

Many people do not include a renderloop until the scene is ready.  That is the first thing to undo.  You might also have to set some switch to say to load things incrementally so they get shown as loaded.  I do not use a .babylon, but I seem to remember this.

Whether it will look cool or not I do not know.  A while back, I was loading busts using inline code.  The textures were still being loaded async though.  I would get eyeballs flashing & then teeth, before the larger body texture surrounded them.  It looked super disturbing.  This is one of the reason I started making grand entrances like poof & teleport to control things.  This does answer your question, is it even possible "Yes".

As far as grid material, even if you set grid on for a mesh/material, as long as the material was not ready, I think the mesh is not going to show.

Link to comment
Share on other sites

Ok I see. If I want to test this thing, I have to find how to make a scene.render() inside the sceneLoader.Append onProgress. And yes, maybe the blinking thing could be finally annoying...

Sounds too hard to do, compare to the likely visual-failure-effect. :P

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...