Visual Artifacts on voxel grid

i made this voxel grid for a project, but for some reason these black lines visible in the image above keep appearing. they shift and move around as you move the camera. they also show up on my friends devices so i know its not just my pc. does any one know how to fix these lines?

i have tried:

  • changing the material(we are not using textures yet)
  • making the blocks slightly smaller or larger
  • changing camera angles
  • changing the graphics mode to Direct3D11
  • playing the game outside of studio

they do tend not to happen when the camera is much close to the grid. however the game I’m making needs a top down camera with a view like the one shown.

Could you take a screen recording of it to better show off the issue? My guess is it’s something to do with the way roblox renders lighting/shadows by distance. Those are just simple parts with plastic material, yes?

yeah the parts are just simple parts. i just 2 seconds ago added a texture to the top of the blocks that is just there color and for some reason that fixed it.

1 Like

UPDATE: i have looked into this issue further. i cannot find a conclusive answer to what the black lines are however i do know what causes them. for some reason with Roblox when you have 2 textures directly up against each other it causes these think black line visual artifacts. i swapped to just using invisible parts with textures on the top sides for the map and this got rid of the lines however i still needed some textures on the sides of blocks for the mountains in the image. when i added textures to all sides of the block the issue came back so i wrote an algorithm that hid faces that are not visible and this fixed the issue. later i set the camera angle to exactly face down at the ground this made the issue come back once again so i set the camera angle off of -90 by 10 degrees and all the black lines disappeared again. i have no idea why this happens i just know that Roblox textures and materials and decals kinda suck we ran into way more issues from not having point filters to weird texture bleed stuff some stuff that’s nearly unfixable for the type of game I’m making. if anyone knows why these thin black lines appear i would be interested in knowing.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.