Closed pindiespace closed 8 years ago
Wow, thanks. This is a large change!
Unfortunately I think it's an overly sweeping change that I cannot accept. Nearly every file has changed! Please split this into smaller pieces and critically: state clearly what problem each pull request is solving. Keep in mind that the point of the boilerplate is to be a starting point for any WebVR project, not just yours.
OK. Had to build it out to confirm it was a reasonable approach. I'll break it out after some more testing.
Here's some ideas for using the manager to load a separate Player object, encapsulating the canvas in a
The fullscreen required some hacks to keep aspect ratio, since css styles cause reflows during resizing.
Significant modification to the ButtonManager necessary to integrate into the Player. Some changes in index.html, including an initial 'resizeifneeded' since we don't test for resize on every loop. However, calling the resize in the animate loop still works.
Mildly tested in Chrome, Edge, mobile Chrome and Safari. Firefox has problems in fullscreen.