-
-
Notifications
You must be signed in to change notification settings - Fork 21.8k
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
Parallax2D (and ParallaxLayer) applies repeat to children nodes before their rotation #95574
Comments
You know, I have no idea. I assumed it should be the same between the two versions, but I'm not sure what is desired. If it's more desired and doesn't have any bad side effects, I'd be happy to look into changing how it works. Edit: |
As pointed out in #95666 (comment) ParallaxLayer/ParallaxBackground behave the same way in v4.3.stable.official [77dcf97] which is a regression compared to v4.2.stable.official [46dc277]. Parallax2D was just added so not a regression but both me and @markdibarry consider this a bug. Hence marking as such.
Edit: Just noticed this issue was mentioning ParallaxBackground/ParallaxLayer from the start, but I somehow got focused only on the Parallax2D part, my bad! |
Seems like #92797 was not properly rebased to account for the changes in Basically this part from the current godot/servers/rendering/renderer_rd/renderer_canvas_render_rd.cpp Lines 2149 to 2166 in 74de05a
So that's a new regression and, if anything, should be rather reported as a new issue. |
Closes godotengine#96960 Fixes regression of godotengine#95574 using fix from godotengine#95666
2D: Fix use-after-free in batch rendering; regression of #95574
Closes godotengine#96960 Fixes regression of godotengine#95574 using fix from godotengine#95666
Closes godotengine#96960 Fixes regression of godotengine#95574 using fix from godotengine#95666
Closes godotengine#96960 Fixes regression of godotengine#95574 using fix from godotengine#95666
Tested versions
v4.3.stable.official [77dcf97]
System information
Godot v4.3.stable - Pop!_OS 22.04 LTS - Wayland - GLES3 (Compatibility) - AMD Radeon Graphics (radeonsi, raphael_mendocino, LLVM 15.0.7, DRM 3.57, 6.9.3-76060903-generic) - AMD Ryzen 7 7800X3D 8-Core Processor (16 Threads)
Issue description
With the introduction of Parallax2D nodes, repeated children nodes will be placed in respect to their own rotation.
In the screenshot below, the sprite seen on the right is the repeat of the Sprite2D on the left side, with it's rotation set to 12° and Parallax2D's rotation left at 0°.
The same issue occurs with a setup of ParallaxBackground > ParallaxLayer > Sprite2D.
I am not sure if this is the intended behaviour? Please let me know if there is missing information or if I am misunderstanding how Parallax2D works! :)
Steps to reproduce
Minimal reproduction project (MRP)
parallax_demo_MRP.zip
The text was updated successfully, but these errors were encountered: