Dad72 Posted May 28, 2015 Share Posted May 28, 2015 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.1this.video.autoplay = false; true; Quote Link to comment Share on other sites More sharing options...
Dad72 Posted May 28, 2015 Author Share Posted May 28, 2015 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.1http://www.castorengine.com/babylon/index.html (texture black) console:WebGL: INVALID_OPERATION: generateMipmap: level 0 not power of 2 or not all the same sizebabylon.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.1http://www.castorengine.com/babylon/index2.html (OK) Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 28, 2015 Share Posted May 28, 2015 Yep this is fixed now Quote Link to comment Share on other sites More sharing options...
Dad72 Posted May 28, 2015 Author Share Posted May 28, 2015 Ok, the signature has changed so. there are more parameter size. by against my empty found it was upside down now. => http://www.castorengine.com/babylon/index.html I think he put should ather invertY has false, no? if (invertY === void 0) { invertY = true; false; } Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 28, 2015 Share Posted May 28, 2015 Sorry this is unclear..but yes I removed the size parameter Quote Link to comment Share on other sites More sharing options...
GameMonetize Posted May 28, 2015 Share Posted May 28, 2015 And you're right by default invert should be false I'll fix that in the next commit Quote Link to comment Share on other sites More sharing options...
Dad72 Posted May 28, 2015 Author Share Posted May 28, 2015 Ok, I solve the topic. Thank you very much DK Quote Link to comment Share on other sites More sharing options...
larsiii23 Posted May 28, 2015 Share Posted May 28, 2015 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); Quote Link to comment Share on other sites More sharing options...
Dad72 Posted May 28, 2015 Author Share Posted May 28, 2015 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"] Quote Link to comment Share on other sites More sharing options...
larsiii23 Posted May 28, 2015 Share Posted May 28, 2015 Thanks! Everything is back working again. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.