Visible lines between perfectly aligned quads

Hi,

I’m working on a quadtree lod planet and I’m having some problems with the lighting. The edges of each quad are perfectly aligned with each other, but there are lines visible between them:
Imgur

Wireframe view:
Imgur

When I, however, disable the directional light (or set its Render Mode to Not Important ?) and just use ambient light, the lines disappear:
Imgur

Thanks in advance for any help!

The lines are most likely because you do not average the normals for the verts along the edges there.

I agree with @hippocoder here, but I’ll add I’m guessing you’re using Unity’s built in RecalculateNormals() function to generate the normals. You can’t do this for this kind of geometry since the generated vertex normals have no knowledge of the adjoining patches. You’ll need to calculate the vertex normals manually if you want multiple separate meshes to have continuous surface normals.

1 Like