vimcaw Posted December 3, 2019 Share Posted December 3, 2019 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 Link to comment Share on other sites More sharing options...
vimcaw Posted December 3, 2019 Author Share Posted December 3, 2019 I have solved the problem by setting filter.padding ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted December 3, 2019 Share Posted December 3, 2019 (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, 2019 by ivan.popelyshev vimcaw 1 Quote Link to comment Share on other sites More sharing options...
vimcaw Posted December 4, 2019 Author Share Posted December 4, 2019 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 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.