colourclash Posted July 13, 2016 Share Posted July 13, 2016 I was trying out some filter effects in Pixi 4 and noticed by setting the filterArea the region outside the area is no longer rendered. i.e. black Is this the intended behaviour a filterArea? I was hoping for the filter to be applied only to the specified area and leave the rest of the image unaffected. I made a codepen here http://codepen.io/anon/pen/VjAGmJ Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted July 13, 2016 Share Posted July 13, 2016 That's how it always worked. We are working on new stuff called "blendFilter" that will doexactly what you want If you want it right now, you can hack https://github.com/pixijs/pixi-picture that way instead of adding OVERLAY/HARDLIGHT blendmodes it applies your filter. Quote Link to comment Share on other sites More sharing options...
colourclash Posted July 13, 2016 Author Share Posted July 13, 2016 Okay, thanks Ivan, good to know! Quote Link to comment Share on other sites More sharing options...
chesovnik Posted May 28, 2018 Share Posted May 28, 2018 So if I need the filter to be applied only to the specified area and leave the rest of the image unaffected (for example, blur for the half of image), I should use pixi-picture plugin with blendModes, should I? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted May 31, 2018 Share Posted May 31, 2018 On 5/28/2018 at 6:40 PM, chesovnik said: So if I need the filter to be applied only to the specified area and leave the rest of the image unaffected (for example, blur for the half of image), I should use pixi-picture plugin with blendModes, should I? If you put your shader instead of overlay, yeah. The other idea is to track "Backdrop" PR for pixi , take that branch and make your own blur based on it. In any case, its all for advanced users who dont fear of the core. Unfortunately, my PR's that make it easier for users were rejected. chesovnik 1 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.