yanwsh / videojs-panorama

a plugin for videojs run a full 360 degree panorama video.
http://yanwsh.github.io/videojs-panorama/
Other
483 stars 160 forks source link

Error matrix camera #153

Open madox35 opened 6 years ago

madox35 commented 6 years ago

Hi,

I've got an issue with your plugin (v0.1.7 with npm). My video starts with the following rotation : initLon = -180. But when I check my matrix rotation of the main camera, I'm seeing this :

Before starting my video, the matrix seems to be ok 👍 (16) [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]

But when I play my video without moving the camera : (16) [0, 0, -1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1] My issue is situed right here : camera.matrix[2] = -1 ! Indeed I'm using this matrix for Omnitone, but my sound is turned at about 90° compared to the video and I think this problem is caused by this incorrect matrix !

Matrix expected would be more like this : (16) [0, 0, 1, 0, 0, 1, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1]

Could you please help me on this point ? Thx in advance!