hawksley / eleVR-Web-Player

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

Not Side bye Side view #53

Open Powershell-coder opened 6 years ago

Powershell-coder commented 6 years ago

Hi Is it possible to turn off Side by Side view in Computer and turn it on in Mobile ?

linhtomtam commented 3 years ago

find player-webgl.js and edit this line:

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

to

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); }