hawksley / eleVR-Web-Player

A Web Player for 360 Video on the Oculus
Mozilla Public License 2.0
682 stars 195 forks source link

Possible on turn off VR feature #45

Open rockyliu520 opened 8 years ago

rockyliu520 commented 8 years ago

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.

dserkin commented 8 years ago

+1

thecrookedalchemist commented 8 years ago

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

thecrookedalchemist commented 8 years ago

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