MozillaReality / puzzle-rain

INACTIVE - A musical WebVR journey for the HTC Vive. Brought to you by Mozilla VR.
https://vr.mozilla.org/puzzle-rain/
MIT License
33 stars 11 forks source link

Splash screen: loads forever #38

Closed cvan closed 3 months ago

cvan commented 8 years ago

Loading splash screen w/ proper WebVR support in Chromium doesn't seem to work.

Nothing seems to happen, no network requests or console errors/logs/warnings.

I need to provide ?mode=normal or ?mode=spectator.

arturitu commented 8 years ago

I could not test it on my Windows machine because display 'block' the launch div. Any suggestion what I am missing?

https://github.com/fernandojsg/the-composer-threejs/blob/master/lib/index.js#L40-67

global.window.onload = function () {
  if (getParameterByName('mode') === 'debug') {
    settings.debugMode = true;
    initApp(false);
  } else {
    if (navigator.getVRDisplays === undefined) {
      window.location.replace('fallback.html');
    } else {
      document.getElementById('launch').style.display = 'block';
      document.getElementById('normalButton').addEventListener('click', function () {
        initApp(false);
      });