# Object made of cubes looks different based on the distance in Unity3D?

I made a "Wall" from basic Unity3D cubes. They are placed tightly so the wall looks like one big rectangular prism.

If I look at it from close distance, it looks as it should be: one big rectangular prism.

But if I start moving backwards, away from the wall, the cubes' edges become visible:

And this whole thing happens in a circular way.

• If I just start moving backwards from the wall,
• first I start to see the cubes' edges just at the further parts of the object, and then the pure white circle starts shrinking, the edges become visible at bigger and bigger parts of the object.
• then the blurrier edges appear at the further places and the previously appeared sharper edges circle starts shrinking as well. (this phase is shown on the image above)

This should be some kind of shading optimization, like mipmap, right?

How can I fix this? I want the wall to be seamless from all distances.

Update:

• Changing the shader to Unlit > Color, fixes the issue.

• This thing only occurs on the lit side of the wall. The shadowy side of the wall, (which isn't lit directly by the directional light of the scene) is rendered normally.

• So when you are close to the objects it just likes like a big cube that is all white, right? Could you try to change the material's shader to something like Unlit -> Color and see if this makes the lines disappear? It's not a "proper" solution, but at least you'd know its the shader's fault. Oct 12, 2018 at 12:41
• @TomTsagk It didn't help. Oct 12, 2018 at 12:55
• Am I correct in assuming that scaling the wall to your desired dimensions will not suffice, and you need it in the multi-cube form? (Interesting problem btw, +1)
– Evorlor
Oct 23, 2018 at 22:25
• Yes, they need to be separated, so big structures' voxels can be invidually damaged and destroyed. @MuhammadFaizanKhan can you elaborate please? Oct 24, 2018 at 7:29
• "big structures' voxels can be invidually damaged and destroyed" does not imply "they need to be separated" - most voxel games that look like they're built out of individual cube objects are actually rendering combined meshes that span many logical cubes. When you damage an individual voxel (you can determine which logical voxel got hit using its grid position, even when it doesn't have its own separate collider/object), the mesh for that group is updated. Oct 24, 2018 at 14:19