loading screen with a video

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

Share this post

Link to post
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.

Share this post

Link to post
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).

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.