I have a simple openGL engine using SDL working. I'm not using any SDL_Image stuff, its all just openGL. I've made 2d tilemap levels with a .txt file before by reading in the characters and using a switch statement to assign them to various textures and using their position in the file to render them. This method works fine and produces no graphical glitches.
Then I made a .tmx map in Tiled and used TmxParser to read the file into my program, and I'm able to render the map properly to the screen, but when I move up and down these black lines start to appear between the tiles.
The map loads in fine at first, its only once I start moving the camera around that it happens, and its only when the camera moves up or down.
I made a video to show exactly what I'm seeing, I see a lot of these type of issues when searching google but nothing that matches whats happening to me.
https://www.youtube.com/watch?v=bm6DcJgCUKA
I'm not even sure if this is a problem with the code or what it could be so I don't know of any code to include.
This problem also happened to me when I was using Unity and importing a Tiled map with Tiled2Unity. In unity there were long horizontal line glitches on the tilemap, and now its happening to me again in c++, is this something to do with Tiled?
Has anyone encountered this before or know a solution?
Any help would be greatly appreciated, I feel stuck on this issue.