Anyone seen this kind of issue? I’m thinking it might have to do with the camera position and some kind of float/int conversion but I have no idea. It seems to hide tiles at random and at the top of the tilemap. I don’t see this issue at the bottom of the tilemap ever.
I tried flooring the camera position each update to avoid odd float values but this had no effect however.
Figured it out (for now.) I moved the camera Z position much higher and modified FOV/view distance settings of the rendercam to compensate for this. Now the issue no longer is showing up for me in the maps I created so far. I’ll have to see if it returns with larger maps in the future, but it seems to be related to the camera being too close to a tilemap.
I tried messing with the depth state but instead of the tiles disappearing black corners show up on different tiles rather than them vanishing and it also messes up my HP bars for my enemies/causes other sprite issues.
You are going to want to have depth testing working if you are wanting your camera to be orientated in ways which cause these kind of problems, which means you will also need to change your render script to work with the blending.
If you are not using RenderCam yet try using it and see if it helps.
@Dragosha I know you have been working with mixed 3d and 2d recently. Could you share the render script parts that make the blending of sprites work? I’ve not messed with it recently enough to know it right away…
Thanks, I’ll definitely look into this soon. Right now I’m just placing columns in places where the issue doesn’t expose itself I need to get more content into the game and I experimented w/ using the depth shader for awhile but had to revert to an old commit because a lot of collision triggers stopped working after adjusting the location of hit boxes, sprites, etc. too rapidly. I’ll have to take a more cautious approach later and try again.