Skip to content

Conversation

@dmarcos
Copy link
Member

@dmarcos dmarcos commented Sep 5, 2018

Description:

Loading screen to avoid blank screen while loading assets and scene render loop has not yet started. The loader animation doesn't require 60fps to mask main thread pauses.

The logic is a pseudo-component since it has to initialize and render while the assets load.

The title of the page is displayed above the loading indicator.

The color of the dots, background and style of the title bar are configurable.

loader

@dmarcos dmarcos force-pushed the loadingScreen branch 4 times, most recently from 96735eb to 3bf560c Compare September 5, 2018 01:48
Copy link
Member

@ngokevin ngokevin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • baseline unit test
writable: true
},

setupLoader: {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can place all the loader code in a module that exports functions setupLoader(sceneEl) to not pollute scope, not meant to be callable by user


setupLoader: {
value: function () {
var self = this;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

a little daunting to read a web of instantiations that aren't used until later in various places. need to jump up/down the function to follow.

writable: true
},

removeLoader: {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can also free the created geometry/materials

@ngokevin ngokevin added this to the 0.9.0 milestone Sep 26, 2018
@dmarcos
Copy link
Member Author

dmarcos commented Oct 4, 2018

@ngokevin This is ready to go:

  • Extracted loadingScreen logic to module.
  • Added tests.
  • Now the loading screen also works on vr if vrdisplayactivate fires. A-Frame will always render something on link traversal while the scene is loading (unless the user disables the loader).
@ngokevin ngokevin merged commit e00dcf5 into aframevr:master Oct 4, 2018
@ngokevin
Copy link
Member

ngokevin commented Oct 4, 2018

I'd document the document.title behavior

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants