I am making a 360 video player. Now I am testing the player on Internet explorer 11 and edge but it seems to give me some errors I don’t get on chrome or firefox.
- WEBGL11072: INVALID_VALUE: texImage2D: This texture source is not supported
- WEBGL11098: drawArrays: The texture is a non-power-of-two texture or not mipmap complete
It shows the errors only every time I call
texture.needsUpdate = true;
The texture is a video element.
texture is made like this.
_videoobj is the video.
_videoobj = document.getElementById("video"); texture = new THREE.Texture(_videoobj);
I get the same error when I make the texture like this:
texture = new THREE.VideoTexture(_videoobj);
The result is that the renderer will not render anything in the canvas.