Skip to content
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

Fix for the sprite display position jumps when placed at subpixel locations and moving the camera #41534

Closed
wants to merge 5 commits into from

Conversation

m6502
Copy link

@m6502 m6502 commented Aug 26, 2020

Fixes the 2D canvas display positions jumping pseudo randomly when the are located at fractional coordinates and the camera changes location. Fixes #41491, fixes #35606 etc. Godot 4.0 branch.

Fixes the 2D canvas display positions jumping pseudo randomly when the are located at fractional coordinates and the camera changes location. Fixes godotengine#41491, godotengine#35606 etc. Godot 4.0 branch.
@bruvzg bruvzg added this to the 4.0 milestone Aug 26, 2020
Fixed the static analyzer complain about the whitespace.
@m6502 m6502 changed the title Update rendering_server_canvas.cpp Fix for the sprite display position jumps when placed at subpixel locations when moving the camera (4.0 branch) Aug 26, 2020
@m6502 m6502 changed the title Fix for the sprite display position jumps when placed at subpixel locations when moving the camera (4.0 branch) Fix for the sprite display position jumps when placed at subpixel locations and moving the camera (4.0 branch) Aug 26, 2020
Another whitespace...
@Calinou Calinou changed the title Fix for the sprite display position jumps when placed at subpixel locations and moving the camera (4.0 branch) Fix for the sprite display position jumps when placed at subpixel locations and moving the camera Aug 26, 2020
m6502 added 2 commits August 28, 2020 00:56
Cleaning the fractional part before makes it work even better.
@m6502
Copy link
Author

m6502 commented Aug 27, 2020

Improved the fix for 4.0 too. More info at the 3.2 pull request: #41535

@m6502
Copy link
Author

m6502 commented Oct 22, 2020

What is required to get a review of this pull request as to unblock it so it gets merged?

@akien-mga
Copy link
Member

This would need to be rebased to squash commits into one and use a meaningful commit message, see PR workflow and https://github.com/godotengine/godot/blob/master/CONTRIBUTING.md#format-your-commit-messages-with-readability-in-mind.

@akien-mga akien-mga requested a review from reduz October 22, 2020 09:27
@reduz reduz mentioned this pull request Oct 29, 2020
reduz added a commit to reduz/godot that referenced this pull request Oct 30, 2020
-Rename pixel_snap to snap_2d_to_vertices
-Added snap_2d_to_transforms which is more useful

Fixes godotengine#41814
Solves proposal godotengine/godot-proposals#1666
Supersedes godotengine#35606, supersedes godotengine#41535, supersedes godotengine#41534
@akien-mga
Copy link
Member

Superseded by #43194 (4.0) and #43554 (3.2.4).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants