Danetag Posted April 26, 2015 Share Posted April 26, 2015 Hey folks!I'm running through an issue with pixi v3. It seems that the blur filter isn't working correctly, or I might have used it in a wrong way, I can't tell. Here's what I'm doing:this.spriteBG = new PIXI.Sprite(PIXI.utils.TextureCache[this.options.id]);this.spriteBG.cacheAsBitmap = true;this.addChild(this.spriteBG);this.blurFilter = new PIXI.filters.BlurFilter();this.blurFilter.blur = 50;this.spriteBG.filters = [this.blurFilter];The result is weird, the texture seems just duplicated and positioned with a different alpha, not blurred at all.Then, when I try to tween the value, nothing happens.TweenMax.to({ blur: this.blurFilter.blur}, .3, { blur: blur, ease: Cubic.easeOut, onUpdateParams:["{self}"], onUpdate:$.proxy(function(tween){ this.blurFilter.blur = tween.target.blur; this.spriteBG.filters = [this.blurFilter]; },this) });Did I do something wrong? Thanks! Quote Link to comment Share on other sites More sharing options...
xerver Posted April 27, 2015 Share Posted April 27, 2015 https://github.com/GoodBoyDigital/pixi.js/issues/1728 Quote Link to comment Share on other sites More sharing options...
clement_cvL Posted April 28, 2015 Share Posted April 28, 2015 Hey Danetag! Just in completion of xserver answer, this blur works great for me playing with blur and passes:this.blurFilter.passes = 5;thus.blurFilter.blur = 5; Quote Link to comment Share on other sites More sharing options...
Danetag Posted April 28, 2015 Author Share Posted April 28, 2015 Thanks a lot guys! Adding more passes made the trick 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.