Jump to content

implementing pixi-v4 filters in phaser 2


Recommended Posts


I'm trying to implement the pixi-v4 filters in phaser 2 (CE Version). 

I'm especially interested in this one: https://github.com/pixijs/pixi-filters/tree/master/filters/zoom-blur

I've noticed this example (http://phaser.io/examples/v2/filters/pixi-filter) in phaser 2 is outdated/not working (link to pixi filter is wrong). Even when i fix the link (e.g. https://github.com/photonstorm/phaser/blob/v2.6.2/filters/pixi/RGBSplitFilter.js) the filter gives an error because pixi is not included.

So I'm wondering what is the right method to do it. 


I guess the main questions here are:



Link to comment
Share on other sites

I actually made some progress. The filter is now running without throwing any errors, but nothing is visible below (although things are there; i tested by applying the filter to one sprite only instead of the game.world)

Here's the filter:


and i call it like that:
f = new Phaser.Filter.ZoomBlur(game);
f.strength = 0.1;
f.innerRadius = 80;
f.radius = 1;
f.center = [500,300];

game.world.filterArea = new Phaser.Rectangle();
game.world.filters = [f];


any clues?

Link to comment
Share on other sites


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...