ZYandu Posted August 20, 2019 Share Posted August 20, 2019 I am getting this error in my game only on IOS with Cordova on PIXI 5.1.1 with Webgl 2.0 (It works on Google Chrome perfectly fine). All my sprites and graphics get loaded to the screen but when the RAF should start it gets this error and doesn't continue. https://imgur.com/a/lqVDzdA Maybe it's something my IOS with Cordova is lacking from the requirements for Webgl 2.0 Specifications? https://www.khronos.org/registry/webgl/specs/latest/2.0/#3.4 Thanks for any advice! ? ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
ZYandu Posted August 20, 2019 Author Share Posted August 20, 2019 It looks like it might just be that Safari doesn't support Webgl 2.0. https://caniuse.com/#feat=webgl2 Cordova uses webkit 2 which is based upon the Safari browser... ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted August 20, 2019 Share Posted August 20, 2019 yep, exactly. ZYandu 1 Quote Link to comment Share on other sites More sharing options...
ZYandu Posted August 20, 2019 Author Share Posted August 20, 2019 Would you happen to know what type of PIXI texture uses Webgl 2.0's uniform1iv call? I would love to just be able to remove something than to completely revert back to PIXI v4 ? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted August 20, 2019 Share Posted August 20, 2019 > what type of PIXI texture uses Webgl 2.0's uniform1iv call Oh, right, its not your shader, its pixi problem. uniform1iv is used even in webgl1 for samplers. I think its not about integers. I think its something about MAX_TEXTURES. Whats the minimal demo that fails? Just a bunch of sprites? ZYandu 1 Quote Link to comment Share on other sites More sharing options...
ZYandu Posted August 20, 2019 Author Share Posted August 20, 2019 The game looks like this: https://imgur.com/a/Y4B2OYT Everything looks like it got displayed fine to start, but it doesn't start the RAF due to the uniform1iv error. Everything on screen are sprites, graphics, and bitmap texts. Once the RAF starts I use some pixi-particles emitters and interpolate sprites and graphics x position values but they aren't even .visible yet. ^.^ Hope this helps! ? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted August 21, 2019 Share Posted August 21, 2019 Tthat means we have a problem with texture locations, like using 32 instead of MAX 16 that is allowed. Do you use any pixi plugins? ZYandu 1 Quote Link to comment Share on other sites More sharing options...
ZYandu Posted August 21, 2019 Author Share Posted August 21, 2019 The only pixi plugin I use is pixi-particles: https://github.com/pixijs/pixi-particles. If I run my game on IOS with the actual Safari app, pixi's console log is showing me that it reverted to webgl 1 and my game does successfully start the RAF. https://imgur.com/a/wDCwmMw So it might be something to do with Cordova's webkit 2 specifically that doesn't like the pixi texture locations allowed as you were saying. ^.^ Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted August 21, 2019 Share Posted August 21, 2019 do you use ParticleContainer? try just Container. If it works, we have a bug in particles. again. ZYandu 1 Quote Link to comment Share on other sites More sharing options...
ZYandu Posted August 21, 2019 Author Share Posted August 21, 2019 Yes I was using ParticleContainer. Unfortunately, making them all into normal Containers still gives me the same uniform1iv error. I just fixed a bug with my audio playing code that was actually the cause for the RAF not starting. Now my game runs the RAF on IOS Cordova so at least the error isn't stopping my game. ^.^ Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted August 21, 2019 Share Posted August 21, 2019 ok, i dont know need to replicate it somewhere but i dont have apple devices ZYandu 1 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.