bevyengine / bevyengine/bevy

Bevy 0.5 Sprite Sheet Animation Sprite Leak

Open
#1,949 25 comments 2 reactions 0 assignees View on GitHub
A-Rendering C-Bug D-Modest I-Regression S-Needs-Reproduction
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

## Bevy version

`bevy = "0.5"`

## Operating system & version

Windows 10

Can test on Ubuntu 20.04 as well as MacOS Catalina

## What you did

Upgrade to Bevy 0.5 from 0.4

## What you expected to happen

Expect sprite sheet animation to work the same as before

## What actually happened

Once upgraded, when I full screen the window the sprite animation has artifacts from another position in the sprite sheet

## Additional information

Here in my `player_setup.rs`: https://github.com/selfup/ionized_earth_rpg/blob/main/src/systems/player_setup.rs#L13

```rust
let texture_atlas = TextureAtlas::from_grid(texture_handle, Vec2::new(16.0, 16.0), 5, 5);
```

This now has to be changed to:

```rust
let texture_atlas = TextureAtlas::from_grid(texture_handle, Vec2::new(16.1, 16.1), 5, 5);
```

To avoid the other sprite from leaking in.

Here is a small screenshot of the feet leaking in above the player. Looks like two black bars:

![image](https://user-images.githubusercontent.com/9837366/115106169-7b387700-9f20-11eb-8e80-a8536b3e5ca2.png)

Short video showing the artifacts leaking through when moving around.

https://user-images.githubusercontent.com/9837366/115106199-a1f6ad80-9f20-11eb-9e02-ddbbcd6860b7.mp4

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.