|
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 -
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
(comments are locked)
|
|
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?
Jan 17 '11 at 06:50 AM
jrbailey1977
The latter. If you overlap, you'll get Z-fighting.
Jan 17 '11 at 01:39 PM
Jessy
Thanks again! Will let you know the results.
Jan 17 '11 at 02:36 PM
jrbailey1977
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
Mar 09 '11 at 09:01 PM
Ande
(comments are locked)
|
|
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
(comments are locked)
|
