Jump to content

How to load a videoDome without showing it right away?


fateriddle
 Share

Recommended Posts

How to load a videoDome without showing it right away?

I kinda need to load the video for videoDome first while playing along with other scene, then at the end of a sequence of animation, videoDome will show gradually (alpha from 0 to 1)

I looked around the api but couldn't find anything, is this possible to do in Babylon.js?

Link to comment
Share on other sites

Hi again using the principle that it is better to teach someone to fish than catch the fish for them? -

if you go to the API in the docs, scroll down to videoDome an open it then look through the properties and methods you will come across

setEnabled

So you ask yourself can I use this, how do I try it out? You go to the docs and search for videoDome which brings you to the how to do 360 video page. On this page there is a playground example. Next quetion is how do I reset dome.setEnabled if I set it to false? Use a clickable button, Next check out the GUI page of the docs and read about events

Here is a button click playground example. Paste this example into the videoDome example and reset the onclick function to reset thee dome.setEnabled to true and see what happens.

The result https://www.babylonjs-playground.com/#SQ5UC1#14

 shows it is possible to load the video and show later. Now all that is needed is to adapt this to the animation context.

 

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