-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
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
Avoid passing zoom scale for ParallaxLayer mirror #89572
Avoid passing zoom scale for ParallaxLayer mirror #89572
Conversation
44734d8
to
b3bdb01
Compare
This is somewhat concerning and needs some deeper investigation of potential other side effects from the changes, and sounds like a compatibility breakage (and that method is exposed) I'm not sure this is the right way to solve this, unsure that breakage is considered valid |
It would be good to figure out what commit caused the regression, since it's apparently not the addition of Parallax2D. |
Oh that's very interesting, sounded like it was that, will do some digging |
@akien-mga Sorry, I caused a misunderstanding: It is my original PR that caused it. I was just clarifying that I didn't change any |
Now this feature isn't used by the engine anywhere else, but it is exposed, so needs some evaluation of what to do to possibly preserve previous behavior |
I've been trying a couple more scenarios between 4.2 and this PR and so far it looks like I haven't found any other regressions in the old nodes. This does, however, uncover an interesting choice we have. The behavior for Zoom doesn't scroll textures: 2024-03-16.12-20-33.mp4Zoom scrolls textures: 2024-03-16.12-17-38.mp4 |
Absolutely not in my humble opinion. Feels like yet another reason to favour Parallax2D |
I did some further testing comparing between versions and it seems this does fix the regression. Unfortunately, the original behavior is not the most ideal since every time you update the scale, you need to reset the mirroring property or it's off. It also seems that |
When zoom scrolls textures, it does not look like a "zoom", but rather like moving the camera forward. |
b3bdb01
to
2feed4c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems fine to me, but I am not very familiar with the ParallaxLayer code
Thanks! |
ParallaxBackground
doesn't support zoom, so instead it scales all theParallaxLayer
s up(!). The old rendering method required that calculation done up front when deciding repeat size, but the new one doesn't. This just uses theParallaxLayer
's original scale to mirror instead.Before:

After:
2024-03-16.10-43-57.mp4
Fixes #89563
I'd like to have some further testing to avoid more regressions. My original PR didn't have any changes to
ParallaxBackground
orParallaxLayer
so I want to be cautious with this fix. I'll comment when I have tried a few more scenarios.