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

Tweak camera to prevent edge line flicker #5

Open
mjhouse opened this issue Nov 22, 2021 · 1 comment
Open

Tweak camera to prevent edge line flicker #5

mjhouse opened this issue Nov 22, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@mjhouse
Copy link
Owner

mjhouse commented Nov 22, 2021

According to Bonkahe:

"you could make the camera only zoom to even numbers of pixels away and only move in increments that are perfect with the resolution of the tiles."

-which might fix the flicker. I'm going to submit an issue to bevy_tilemap and then do the above.

@mjhouse mjhouse self-assigned this Nov 23, 2021
@mjhouse
Copy link
Owner Author

mjhouse commented Nov 24, 2021

Filed an issue with bevy_tilemap. This could be an issue with either bevy (in which case may be fixed in bevy 0.6) or bevy_tilemap.

Partially fixed locally by:

  • Updating the scaling every frame
  • Panning only to multiples of the scale
  • Updating the pan position when the scale changes

@mjhouse mjhouse added the bug Something isn't working label Dec 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant