PLAYERKILLERS Posted February 7, 2020 Share Posted February 7, 2020 A user has reported this error Error creating WebGL renderer :0:2(12): warning: extension GL_ARB_gpu_shader5' unsupported in fragment shader 0:21(29): error: sampler arrays indexed with non-constant expressions are forbidden in GLSL 1.30 and later Quote Link to comment Share on other sites More sharing options...
obiot Posted February 10, 2020 Share Posted February 10, 2020 do you know on which platform this is ? also which version of melonJS are you currently using ? I'm asking, as of version 6.x (and through 7.x) WebGL detection and implementation have been improved to especially avoid using it when not fully supported. Quote Link to comment Share on other sites More sharing options...
obiot Posted February 10, 2020 Share Posted February 10, 2020 FYI, see here : https://github.com/melonjs/melonJS/issues/982 PLAYERKILLERS 1 Quote Link to comment Share on other sites More sharing options...
PLAYERKILLERS Posted February 10, 2020 Author Share Posted February 10, 2020 I believe he's using Linux with a possibly wonky graphics driver. I'm using 7.1.1 with an edit for texture packer. The 8.0 build you linked adds gravity to the game. https://discord.gg/ch6u6BX Quote Link to comment Share on other sites More sharing options...
obiot Posted February 16, 2020 Share Posted February 16, 2020 which edit do you have for texture packer, is it the one for the free texture packer we also added in 8.0 ? as for the gravity, yes, as part of the 8.0 version (major version increase, so some breaking changes) we revamped a bit the physic implementation to be closer to those physic engine out-there (with the will to be able to use one of them through a plugin) and as a consequence we now have a world global gravity settings that can then be lowered or amplified per physic object (instead of previously where each object gravity were managed separately), see here for the detailed changes : https://github.com/melonjs/melonJS/wiki/Upgrade-Guide#71x-to-800 but if you switch to 8.0, you can just disable the gravity by setting me.game.world.gravity to 0 (it's a vector) and you should be back to the previous 7.x behavior. last but not least as part of the WebGL testing I think we should then try to compile/link the built-in shaders and if failing then display a error message in the console and revert back to the canvas renderer, l'll look into it this week. PLAYERKILLERS 1 Quote Link to comment Share on other sites More sharing options...
obiot Posted February 19, 2020 Share Posted February 19, 2020 @PLAYERKILLERS test build with the fallback fix to Canvas is available, see here https://github.com/melonjs/melonJS/issues/982 PLAYERKILLERS 1 Quote Link to comment Share on other sites More sharing options...
PLAYERKILLERS Posted February 20, 2020 Author Share Posted February 20, 2020 Thanks again, I'll ask the user to test it. obiot 1 Quote Link to comment Share on other sites More sharing options...
obiot Posted March 7, 2020 Share Posted March 7, 2020 (edited) @PLAYERKILLERS any feedback from your tester ? in the mean time I just pushed some further changes to the WebGL renderer in order to fix the "sampler arrays indexed with non-constant expressions are forbidden in GLSL 1.30 and later" error which will allow to have the WebGL renderer enabled on more Linux platform as well. https://melonjs-builds.s3.amazonaws.com/index.html?prefix=artifacts/master/2597/build/ Edited March 8, 2020 by obiot Quote Link to comment Share on other sites More sharing options...
PLAYERKILLERS Posted March 8, 2020 Author Share Posted March 8, 2020 He hasn't responded with a result. I'll add this update. Thanks again for the update. obiot 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.