espace Posted July 23, 2016 Share Posted July 23, 2016 hi, i would use the blur effect from pixi in phaser http://pixijs.github.io/examples/index.html?s=filters&f=blur-filter.js&title=Blur how do you integrate this with phaser. When i specify pixi.js and phaser.js same on index.html i have multiple errors. on the phaser's documentation i see a lot of reference of pixi...could you tell me how it works with phaser ? a sample example ? Thanks Link to comment Share on other sites More sharing options...
espace Posted July 23, 2016 Author Share Posted July 23, 2016 yes but how do you increase the blur effect ? Link to comment Share on other sites More sharing options...
rich Posted July 23, 2016 Share Posted July 23, 2016 A (very) custom version of Pixi is built into Phaser. You don't need, and shouldn't, try to include it as well (or it will generate all kinds of errors) The blur filter is available here: http://phaser.io/examples/v2/filters/blur (and lots of others), but you can use any Pixi filter in Phaser. Here is an example showing how: http://phaser.io/examples/v2/filters/pixi-filter Link to comment Share on other sites More sharing options...
espace Posted July 23, 2016 Author Share Posted July 23, 2016 yes but how do you increase the blur effect with this filter http://phaser.io/examples/v2/filters/blur Link to comment Share on other sites More sharing options...
rich Posted July 23, 2016 Share Posted July 23, 2016 You set the blur property: var blurX = game.add.filter('BlurX'); var blurY = game.add.filter('BlurY'); blurX.blur = 100; blurY.blur = 1; espace 1 Link to comment Share on other sites More sharing options...
espace Posted July 23, 2016 Author Share Posted July 23, 2016 thanks it works Link to comment Share on other sites More sharing options...
Bespired Posted April 8, 2017 Share Posted April 8, 2017 This seems broken in 2.7.3... not working in http://phaser.io/examples/v2/filters/pixi-filter ( not grey ) not working in http://phaser.io/examples/v2/filters/blur ( not blurred ) Link to comment Share on other sites More sharing options...
Recommended Posts