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

TileMap Pixel Snapping Precision - Black Lines #100341

Open
Veradictus opened this issue Dec 12, 2024 · 1 comment
Open

TileMap Pixel Snapping Precision - Black Lines #100341

Veradictus opened this issue Dec 12, 2024 · 1 comment

Comments

@Veradictus
Copy link

Veradictus commented Dec 12, 2024

Tested versions

4.3
4.4-dev6

System information

Windows 11 - Godot 4.3

Issue description

TileMap pixel snapping loses precision the further away from the origin you get. Near (0,0) coordinates the TileMap behaves perfectly, for the sake of exaggerating the effect, I've attached a minimal project at ~20,000 tiles from the origin in both x, y direction and the black lines become far more frequent both horizontally and vertically.

In my personal project the issue occurs at ~1,000 tiles from origin (I'm guessing due to the amount of layers/other sprites?, not sure).

The issue is still present even with pixel snapping enabled.

Pictures: Make sure you open at full resolution

Image
Image
Image

Video

Steps to reproduce

Make a TileMap
Make a Camera2D
Draw some tiles ~20,000 tiles away from the origin
Set camera position to those tiles
Add some WASD/Arrow key movement and camera zoom functions
Start project and move around and test different zoom functions

Minimal reproduction project (MRP)

tilemap.zip

@arkology
Copy link
Contributor

May be related #99953

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: No status
Development

No branches or pull requests

3 participants