I have been trying to solve this one for a while. Finally figured it out. You need to make some adjustments to the tour_core_vr.xml file.
BUT... the first thing to know is why the screen is there in the first place. Many implementations of WebVR (GearVR, Oculus, or Vive) require user interaction to initiate VR (ie. a button press). It will not allow the VR page to auto-start programmatically, the user actually has to click a button, hence the annoying start screen. But, if your users are using mobile devices in cardboard VR type setups then you can remove the start screen and still be just fine.
To remove the start screen and go straight into VR:
In the tour_core_vr.xml file, around line 813 you need to remove the code that adds the menu layers to the scene. Remove the entire layer entry for "webvr_enterbutton" and its children. In my case it was everything from line 813-848. Then you need to search for and remove all references to this layer and its children. Search for each of these terms and remove every line they appear in:
webvr_enterbutton
webvr_button_text
webvr_button_enter
webvr_button_image
Now find the webvr_onavailable action (mine was line 708). Add webvr.enterVR(); after webvr.loadsettings();
Your webvr_onavailable action should look like this:
|
Source code
|
1
2
3
4
5
6
7
8
9
10
11
|
<action name="webvr_onavailable">
if(nofullspherepanoavailable,
webvr_onunavailable();
,
set(webvr.worldscale,1.0);
webvr.loadsettings();
webvr.enterVR();
);
</action>
|