hawksley / eleVR-Web-Player

A Web Player for 360 Video on the Oculus

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Possible on turn off VR feature

rockyliu520 opened this issue · comments

commented

Thank you so much for sharing this @hawksley . Is it possible to turn off VR feature in this project. So There will be only one view instead of left and right view. Thank you.

I turned the vr mode off but it breaks the 3D projection completely... then I tried turning the 3D projection into normal projection still with the sphericle view but video doesn't want to play ... Please help

if (eye == 0) { // left eye
webGL.gl.viewport(0, 0, canvas.width, canvas.height);
} else { // right eye
//webGL.gl.viewport(canvas.width/2, 0, canvas.width/2, canvas.height);
}

comment out the part after the else out to remove VR feature in the player-webgl.js file