bevy_ecs_tilemap: Possible rendering bug?
Hi,
I just updated to 0.5.0 and made the necessary changes to migrate, primarily adjusting to the layer_id no longer being public and adding the texture filter helper system set_texture_filters_to_nearest to get things working again. While it is rendering the tilemap again, I have weird behaviour where some tiles seem to disappear when I translate the camera, previously everything rendered perfectly. I thought it might be related to the chunk size, but I’ve tried various things to no avail.
Here is a video example of what I’m seeing, the line shouldn’t suddenly appear. Any ideas?
https://user-images.githubusercontent.com/301084/150021113-5149d6b5-1ef9-480f-a0e8-a90558fc9122.mp4
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 1
- Comments: 22 (10 by maintainers)
Ahh make sense. I’ll look forward it, thanks for all the help, I’ll close this as fixed now.
I do things like that all the time, no worries! If you haven’t done it yet, might be worth pulling some of the more complex logic into small functions which you can unit test. I totally get if you don’t want to though, I find it a chore forcing myself to write tests unless I’m at work 🙂
@StarArawn It’s me again, sorry! This was driving me a little mad, so I switched to the example and just increased the map & chunk size. I get the same result:
It seems like a bug, unless there is some really subtle change in the interface I’m missing.
If it’s at all useful, I’ve configured my layer settings like:
I’ve reproduced this with various values passed into this function, but the video above was made with
I’m building the map in a loop like this (cut down for brevity):