- Home /
3D Terrain Tiling Graphic Artifact
I've created a terrain for a character (currently the 3rd person shooter tutorial model) out of 1X0.1X1 cubes/tiles. The tiles have different child shapes based on the terrain tile type (e.g. plains are just a textured tile, while hills are a tile with some ellipsoids poking through the top). For the most part this is running very well and serves my immediate purposes; however, at times I'll see black horizontal lines of varying lengths flicker momentarily as the player moves around. These lines are always where the tiles meet. All of the shapes were modeled using Unity gameobjects and are intended to be temporary until I get more experienced with Blender. Is there something I can do within Unity to correct this?
Based on what I've found in the forums I've tried the following -
ensure all of the textures in my materials are clamped...and then just repeated (no change with either)
I've ensured that the game is synched to the monitor refresh (no change)
I've read somethings about UV mapping, which I will explore as I get more familiar with 3D modeling, and suspect I will not be able to correct this issue until I can create terrain tiles with Blender.
Here is a portion of the scene in the Sceneview. I've selected a few of the tiles so you can see how they are interconnected -
Here is a portion of the game view, with the black line showing just behind the player character -
Any suggestions would be appreciated.
Thanks, Joe
Answer by Jessy · Jan 17, 2011 at 04:00 AM
Sometimes it happens. If your tiles are snapped as well as they can be, I don't think you have a choice but to come up with an algorithm for welding the vertices at the edges.
http://forum.unity3d.com/threads/38018-Rendering-artifacts-at-vertex-seams-and-object-seams
Jessy, thanks for giving me a good lead - I never came across this article. With respect to "welding" the vertices, do you mean just having them overlap or actually merge the two meshes so they share a common vertex?
Did you ever solve this problem? I made a related forum post: http://forum.unity3d.com/threads/81194-About-welding-vertices-to-get-rid-of-visual-artifacts-in-a-tile-based-game
Answer by twins686 · Dec 25, 2011 at 04:46 AM
ok i have solved this at least for powerful computers
go to each terrains settings and set pixel error to 1
i will have mor info shortly
Your answer
![](https://koobas.hobune.stream/wayback/20220613095751im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
sliding rows of tiles in 3D 0 Answers
Unity 5 Sphere Rigidbody getting weird behaviour while moving around in a tiled mesh collider scene 1 Answer
What is the correct way to create individual floor tiles in a 3d game? 1 Answer
3d game problem with tail 1 Answer
How to load a new scene you create in current scene ? [Unity3D C#] 0 Answers