-
Notifications
You must be signed in to change notification settings - Fork 7.1k
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
PostFX effects distort image while resizing canvas #6503
Comments
hello there I looked into the docs and your problems seems that the PostFX pipeline is not refreshing correctly when the canvas is resized .Maybe Phaser 3.60.0 changed how the engine handles resizing, causing the PostFX effects to distort when the canvas size changes.I would recommend to manually clear the PostFX pipeline whenever the canvas is resized. here's how you could modify your code
} create() {
} new Phaser.Game({ |
@KhalilFH Thanks for checking it out. This workaround indeed does the trick and luckily I do not have a ton of FX'es (yet!) used. |
Just wanted to second this issue. I had to pull out my camera POSTFX completely for now (applies colourMatrix effects to be used in gif generation of game scene when user wants to share their creation). Clearing prefx/ recreating it worked fine for resolving the issue for each sprite (ie glow, or outline) but haven't found work around for applying postfx to camera it's self. |
Thank you for submitting this issue. We have fixed this and the fix has been pushed to the |
I am actually seeing issues today with 3.80.1 and postFX.blur. |
This issue has been mentioned on Phaser. There might be relevant details there: https://phaser.discourse.group/t/possible-bug-blur-post-fx-moves-on-resize/14198/2 |
Version
Description
Hello,
I was upgrading to Phaser 3.60.0 and got some issues with, previously used without any problems on 3.55.2, rexrainbow Outline Plugin. I tried postFX glow and found out it has the same issue now.
Example Test Code
Example Here
Use your mouse wheel to resize canvas. Point at the image to add glow postFX effect.
Image will get distorted if effect is being applied while resizing. Everything is normal otherwise.
Additional Information
PreFX effects are working fine.
The text was updated successfully, but these errors were encountered: