x


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 -

  1. ensure all of the textures in my materials are clamped...and then just repeated (no change with either)

  2. 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 -

Scene View

Here is a portion of the game view, with the black line showing just behind the player character -

Game View

Any suggestions would be appreciated.

Thanks, Joe

more ▼

asked Jan 17 '11 at 02:45 AM

jrbailey1977 gravatar image

jrbailey1977
24 5 5 10

(comments are locked)
10|3000 characters needed characters left

2 answers: sort voted first

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

more ▼

answered Jan 17 '11 at 04:00 AM

Jessy gravatar image

Jessy
15.6k 72 95 196

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
Mar 09 '11 at 09:01 PM Ande
(comments are locked)
10|3000 characters needed characters left

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

more ▼

answered Dec 25 '11 at 04:46 AM

twins686 gravatar image

twins686
1

(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x454
x32
x32
x29

asked: Jan 17 '11 at 02:45 AM

Seen: 2011 times

Last Updated: Dec 25 '11 at 04:46 AM