Stephan Posted April 9, 2015 Share Posted April 9, 2015 Hi, I have been trying to get PIXI web-GL filters working in Panda but for some reason every attempt failed so far. here is a sample:var graphics = new game.PIXI.Graphics();graphics.lineStyle(15, 0x00ffff, 1);graphics.drawRect(50,50,100,100);var blurfilter = new game.PIXI.BlurFilter(); blurfilter.blur = 100; graphics.filters = [blurfilter];graphics.addTo(this.stage); Are filters supported at all in the current version of Panda?And will they be supported in Panda 2.0? Thanx!Stephan Quote Link to comment Share on other sites More sharing options...
enpu Posted April 9, 2015 Share Posted April 9, 2015 Filters should work with current Panda, and your code looks ok to me.Have you tried other filters and other than Graphics? Filters will be removed from Panda 2.0, but will be released as plugin later. Quote Link to comment Share on other sites More sharing options...
Stephan Posted April 9, 2015 Author Share Posted April 9, 2015 Thanx for your incredibly fast response! I have tried graphics and other filters as well but nothing worked so far. (Masks however are working fine). It is however good to know that it should work. (I indeed found all needed classes in game.PIXI). I'm gonna dig a bit deeper in the PIXI code to solve the issue. Quote Link to comment Share on other sites More sharing options...
enpu Posted April 9, 2015 Share Posted April 9, 2015 You sure you got WebGL enabled? Quote Link to comment Share on other sites More sharing options...
Stephan Posted April 9, 2015 Author Share Posted April 9, 2015 No, I had a problem in the config file: I replaced:pandaConfig = { name: 'MyPandaGame', version: '0.0.0', webGL: true}; by:pandaConfig = { name: 'MyPandaGame', version: '0.0.0', system: { webGL: true }};That resolves the isssue.Thanx Enpu! 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.