vimcaw 1 Report post Posted December 3 I'm a newbie on Pixi.js, recently met a problem, I want to show the outline of a sprite by using OutlineFilter, but a part of the outline was cropped by bound. The pixi example page looks same: https://pixijs.io/examples/#/plugin-filters/outline.js But pixi filter demo is good: http://pixijs.io/pixi-filters/tools/demo/ Source Code: https://github.com/pixijs/pixi-filters I wonder what magic is used, Thanks. Quote Share this post Link to post Share on other sites
vimcaw 1 Report post Posted December 3 I have solved the problem by setting filter.padding 1 ivan.popelyshev reacted to this Quote Share this post Link to post Share on other sites
ivan.popelyshev 782 Report post Posted December 3 (edited) Just don't forget that Outline is really slow, and its better to precalculate outline in photoshop and put it as a sprite. Its also possible to do with physicsEditor + pixi-poly: https://github.com/eXponenta/pixi-poly It will generate outline Graphics element. Edited December 3 by ivan.popelyshev 1 vimcaw reacted to this Quote Share this post Link to post Share on other sites
vimcaw 1 Report post Posted December 4 16 hours ago, ivan.popelyshev said: Just don't forget that Outline is really slow, and its better to precalculate outline in photoshop and put it as a sprite. Its also possible to do with physicsEditor + pixi-poly: https://github.com/eXponenta/pixi-poly It will generate outline Graphics element. Ok, thanks for the suggestion! 😀 Quote Share this post Link to post Share on other sites