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

rendering map results in gaps between DT1 tiles #62

collinsmith opened this issue Oct 23, 2019 · 0 comments


Copy link

@collinsmith collinsmith commented Oct 23, 2019

I've noticed that under certain circumstances gaps show up when rendering the map tiles. This is typically visible as a 1px gap between tiles (floor isometric tiles and wall rle tiles). It seems this is some sort of issue with opengl that's usually fixed by adding some kind of texture border. This is a pretty difficult problem due to the nature of how the files are stored/loaded -- and I'm not even sure if adding this could fix the issue.

On mobile I was noticing the behavior much worse with the isometric floor appearing with gaps in the tiles. This was resolved by stretching the textures by 1px which caused another issue referenced by #55 (comment).

In the meantime, I've noticed that the issue doesn't really seem to appear noticeably with an even resolution (I was debug rendering at 853x480 which is 16:9 version of 480p), when rendering at an even resolution (in my case 854x480) the issue did not appear. I've also removed the texture stretching, which seems to have resolved the jitter issue I referenced above.

I'll look into a better solution when I begin implementing lighting, as increasing the size of the texture for the tile could cause issues with that system.


collinsmith added a commit that referenced this issue Oct 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
1 participant
You can’t perform that action at this time.