godot icon indicating copy to clipboard operation
godot copied to clipboard

AnimatedSprite2D not loading Sprite sheet accurately

Open nathanjwtx opened this issue 1 year ago • 3 comments

Godot version

4.0 Mono Stable

System information

Windows 11, NVidia RTX 3060, Vulkan/Forward+

Issue description

Screenshot 2023-03-10 085712

It's kinda hard to see from the screenshot, but when loading in a Sprite sheet to the AnimatedSprite2D, the auto generated cells are clipping the one above. This does not happen when loading the Sprite sheet into the frames of an AnimationPlayer. I tried adjusting the offset and separation but that didn't solve the problem. It's as if the generated grid needs nudging up a pixel row.

It might be related to this issue? https://github.com/godotengine/godot/issues/67164

Steps to reproduce

Walk

Load the above Sprite sheet into an AnimatedSprite2D node and zoom in. You should be able to see the overlap between cells.

Minimal reproduction project

N/A

nathanjwtx avatar Mar 10 '23 14:03 nathanjwtx

If it is the behaviour in the editor that is the problem it's due to filtering, should be fixed by #73962 or #74341, unsure which

AThousandShips avatar Mar 10 '23 15:03 AThousandShips

Ok. Shall I close this issue?

nathanjwtx avatar Mar 10 '23 15:03 nathanjwtx

Check the PRs and see if the issues they link describe your issue, otherwise see if they will fix your issue, I think it is what's wrong but can't check myself at the moment

AThousandShips avatar Mar 10 '23 15:03 AThousandShips

This does not happen when loading the Sprite sheet into the frames of an AnimationPlayer.

It does image You need to use nearest filtering.

This is editor-only issue, closing as duplicate of #57550

KoBeWi avatar Mar 17 '23 01:03 KoBeWi