videojs-panorama
videojs-panorama copied to clipboard
Error matrix camera
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!