-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
v2.0.0 displacementFilter multiple canvases #1122
Comments
Problem occurs with displacement shader too (even with one canvas) : http://jsfiddle.net/glafarge/rf6xybm0/. |
I am having a similar issue with custom shaders. If you copy the url of the diffuse image and paste it as the displacement map image url, you will find out you will get the same incorrect result for the 2nd and 3rd instances. It seems that Pixi will lose the texture after the first Pixi instance being created. |
This is a half fix for your case like what I did in the pull request: In your case, because the displacementFilter added the eventListener into the Texture and once the image is loaded. There must be some messed up with the event listener that the off() call removed another function or something. If you commented the removeEventListener line like this: You can see the problem is resolved(sort of). |
Thank you Edan ! I was stuck into this bug since 2 days ! |
Hi @glafarge, please check if the latest dev branch fixed the bug? |
Hi @edankwan ! |
This issue may be caused by #1238, hopefully this will be fixed in v3 |
Boom! works like a champ in v3! |
Thank you !! :) |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Unexpected result with DisplacementFilter when I have more than one canvas in page.
Two fiddles to compare :
v1.6.1 : http://jsfiddle.net/glafarge/6h84bpnk/
v2.0.0 : http://jsfiddle.net/glafarge/6h84bpnk/1
The text was updated successfully, but these errors were encountered: