Lines appear between sprites after migrating to 0.6. #3748
Replies: 2 comments 4 replies
-
@automeowtion Hi! You found an issue that's quite common with atlas rendering. There are a few ways of solving this:
I would recommend option 1. A better solution would be to use a texture array. Each texture in the array can be sampled and filtered independently of the other textures, however bevy doesn't have support for texture arrays out of the box. You'll need to setup a custom render pass and create the texture array manually there is a bit of work and know how that goes into that. A simpler approach is to go with option 2 or 3. Option 2 is your best bet between those choices. |
Beta Was this translation helpful? Give feedback.
-
In Bevy 0.10, insert the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Lines appear if

cam.orthographic_projection.scale
is not 1.0.Sprites are spawned through
SpriteSheetBundle
.The lines may be horizontal or vertical depending on the sprites but always appear at sprite boundaries.
Camera is
OrthographicCameraBundle::new_2d()
with only scale adjusted.In the picture below, sprite size is 32x32 pixels and camera scale is 0.7.
Beta Was this translation helpful? Give feedback.
All reactions