Jump to content

Displacement filter transform


kawabata
 Share

Recommended Posts

Hi there,

it seems to me that the displacement sprite (let call it DS) used for a displacement filter (applied to a sprite, call it S) is not properly managed by the transformations of the scene graph. Let me explain it better: if I rotate a container containing S and DS then the displacement filter is applied in a different way. This seems not the right thing to expect...

Thanks very much for any help! 

Link to comment
Share on other sites

Dear kawabata! I'm deeply concerned by that problem. But I cannot do anything until you speficy which version of pixi are you using. Then I'll say you to use latest https://github.com/pixijs/pixi.js/blob/dev/bin/pixi.js . Then you'll tell me that bug still exists, and we together will reproduce it on http://pixijs.github.io/examples/index.html?s=filters&f=displacement-map.js&title=Displacement%20Map. Then I'll fix it and we'll have new shiny version for pixi :) 

@bQvle is also concerned, he's using displacementFilter at tankwars.io and he already reported about 10 problems with filters, some of them we did actually fix.

Yours truly, @Hackerham.

UPD. OH SH** THE DEMO ISNT WORKING!!! I'll fix it soon, sorry :)

UPD2. Fixed. Its PR https://github.com/pixijs/pixi.js/pull/2678

Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...