jstoone Posted August 26, 2016 Share Posted August 26, 2016 Hi everyone, and happy v4! I am having some problems with my DisplacementFilter, after updating from v3 to v4. In v3 when I moved the displacement sprite, it would loop just like a TilingSprite, when incrementing the x-position:https://jsfiddle.net/ybsyzko9/3/ But in v4 it reaches the "end" and repeats the last pixels:https://jsfiddle.net/oy2evb47/1/ So now I'm unsure whether I've been exploiting a bug... Hope not. But I am looking for ways to reach the v3 effect in v4, and any help is appreciated! All the best. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted August 26, 2016 Share Posted August 26, 2016 That's known issue, we should add it to migration doc. When you load texture for displacement sprite, before you use it, do the following: "texture.baseTexture.wrapMode = PIXI.WRAP_MODES.REPEAT" Quote Link to comment Share on other sites More sharing options...
jstoone Posted August 26, 2016 Author Share Posted August 26, 2016 Thanks a bunch @ivan.popelyshev, it just works right away. Wicked! Now I can finally get into this weekends Ludum Dare with confidence. ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted August 26, 2016 Share Posted August 26, 2016 good luck with it! 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.