Hi VVZen,
Thanks, but it didn't work, even under Fake VR, it doesn't work properly.
It opens the side-by-side view, but does not respond to mouse movements and there's both an Enter VR and a Exit VR button conflicting.
Display MoreQuoted from "augustommm"
Hello guys!Sorry for being such a newbie!
Where exactly should I place this line of code for this to work?
You could put in the startup action, and pass the argument while sending the address like this: http://mytour/tour.html?enterinvr=true
Source code
1
2
3
4
5
6
7
delayedcall(0.5, if(get(enterinvr), webvr.toggleVR(); ););
trace('VR is active? ', get(enterinvr));
if(startscene === null OR !scene[get(startscene)], copy(startscene,scene[0].name); );
loadscene(get(startscene),merge,blend(4));
if(startactions !== null, startactions() );
</action>
UPDATE:
It seems that on my mobile phone it won't start directly in vr mode, while on desktop under fake vr it does.
Is it required some kind of user interaction to enter in vr mode?
Can we bypass this?
I'm loading the pano inside the webview of an android app.Namastè.