Jump to content

loading screen with a video


Buzul
 Share

Recommended Posts

Hi everyone.. I'm here again with a fresh question...

I'm trying to do create custom loading screen.. A lot of topic inside of the forum anf i have already read document about loading screen, and also i did some thing (you can find PG link below and if you want you can update it) but how we can add a video to the loading screen background i couldn't find a solution or sample, and also i can't count items on the scene...

PG Link:  https://playground.babylonjs.com/#WV4PLS

Somebody can show me the way about this?

Thanks in advance..

Link to comment
Share on other sites

Hi @Buzul .  Have you seen these docs on creating custom loading screens?: http://www.babylonjs-playground.com/#1WXS3J

Here is a sample playground that uses a custom scene loader: http://www.babylonjs-playground.com/#1WXS3J

 

You can implement a function in displayLoadingUI that implements a video texture.

Link to comment
Share on other sites

Here's one in HTML that just makes a black background container and a video element.

https://playground.babylonjs.com/#GC1S7W#1 (You may need to click run before the video works, issue with video elements need interaction.)

side-note: PG with timeout( for extra video time ) will bug when clicking run again before the timeout finishes (and video is hidden).

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