- Home /
Weird dots and lines between objects
I create some cubes (same size and textures (diffuse, simple)) and put them side by side without any space in between. Created a point light (this problem persists with any type of light) and when I hit play Unity renders some weirds dots and lines between my cubes as you can see in the up right of the image.

What should it be? How can I fix it?
thanks,
EDITED:
This is the project: teste.zip
Answer by ratking · Jul 14, 2012 at 07:55 PM
This isn't a problem with Unity, but how rendering works (and how unprecise it is sometimes). If you set your Anti Aliasing setting in the QualitySettings to 8x Multi Sampling, the effect will be reduced a little bit, but this isn't the real solution.
The dots will go away if you set the Near Clipping Plane of your camera to (at least) 0.3 - the higher the value is, the more precise the buffer can get rendered on higher distances.
Another solution is to not use cubes. Use planes instead (just try it by setting the Y value of the cubes' scale to 0.0001), as they don't have sides which can shine through.
Nice! Thanks very much for your explanation, I'm new on making 3D games. Setting the camera clipping pane to a higher value worked. Thanks again and congrats for your awesome work.
Your answer
Follow this Question
Related Questions
Mesh Renderer not showing in scene, disabled in Inspector, but debug says it's enabled? 1 Answer
renderer.enabled question 2 Answers
Fog rendered outside box collider 0 Answers
How confugure render? 1 Answer
How to issue render call from script 1 Answer