Jump to content

[Bug] VideoTexture: black screen


Dad72
 Share

Recommended Posts

Texture The video has a black screen since the last update when I test with a previous version 2.1, it works.
 
and made to autoPlay is false on FireFox video gives a transparent screen, even with the previous version 2.1

this.video.autoplay = false; true;

Link to comment
Share on other sites

I reproduce the problem with the comparison of an old and new version.

The code is exactly the same, only the version of babylon changes.

 

Version current 2.1

http://www.castorengine.com/babylon/index.html (texture black)

 

console:

WebGL: INVALID_OPERATION: generateMipmap: level 0 not power of 2 or not all the same size
babylon.js:6 WebGL: drawElements: texture bound to texture unit 0 is not renderable. It maybe non-power-of-2 and have incompatible texture filtering or is not 'texture complete'. Or the texture is Float or Half Float type with linear filtering while OES_float_linear or OES_half_float_linear extension is not enabled.

 

 

 

Hold version 2.1

http://www.castorengine.com/babylon/index2.html (OK)

Link to comment
Share on other sites

Hi!

 

I also have som problems with VideoTexture after the last push to the git repo. I see that the boolean parameter invertY is added to the VideoTexture constructor. Don't know what this propery do (flip the texture?), but I get the error "Uncaught TypeError: Cannot read property 'push' of undefined" either if I set this parameter to true or false.

 

Sample:

mesh.material = new BABYLON.StandardMaterial("textVid", scene);mesh.material.diffuseTexture = new BABYLON.VideoTexture("video", "theURLofTheVideo", 1024, scene, false, false);
Link to comment
Share on other sites

The signature change. size was deleted:
 
correct like this:
mesh.material.diffuseTexture = new BABYLON.VideoTexture("video", ["theURLofTheVideo"], scene); 

The 2 false end are not useful since they are a false by default. and theURLofTheVideo is a array => ["video"]

 

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...