- Home /
Why a basic unity terrain has low resolution on the borders? (image included)
As you can see from the image, the terrain has really low resolution on the borders, i've tried increasing the heightmap resolution, but no change whatsoever (or really minor change). Ironically, when i click and hold on the scene to increase/decrease the height of terrain, it does show well defined borders, which is exactly what i'm looking for, but then when i release it goes back to this (image). Anyone can try this, all i did was add a terrain, decrease a bit the height, and start increasing the terrain on the editor and you can see what i'm saying, how can i improve this?
Answer by Namey5 · Sep 03, 2019 at 02:41 PM
This is a side effect of level of detail (LOD). For performance reasons, the whole high-res terrain can't (shouldn't) be drawn at once, so instead it is loaded in sections, with the chunks that are further away rendered at a lower detail level, hence why the terrain is low-resolution here - you are far enough away that the LODs are kicking in. The new terrain system (from 2018.2+ I believe) is supposed to have fixed this, by sampling surface normals from the heightmap rather than from the actual terrain mesh - meaning the terrain will 'look' high res at any distance, but still keep proper LODs. All you can really do is mask those edges with textures/details.
hmm i don't think that's the problem because as you can see from the image it's pretty close to the terrain.. and another reason why it's not is because i found a way to not show that low resolution.. i played a bit with terrain settings and if for example you set terrain width 64, length 64, height 7, Detail Resolution 512, and raise a bit the terrain you'll see that it no longer has the low res.
LODs tend to kick in at a few dozen metres, and the fact that you can see the whole terrain at once makes me believe you are more than far enough away from it. If you lower the size of the terrain, to be at a similar vantage point you would have to be significantly closer to the terrain, hence why the LODs wouldn't be as visible with the settings you changed. Another giveaway that this is to do with LODs is that you mention the problem goes way while making terrain adjustments. Unity automatically disables LODs (picks the highest resolution LOD) while you make terrain adjustments so that you can see your changes properly and make adjustments accordingly.
Your answer
Follow this Question
Related Questions
Should Heightmap Resolution be one greater than Detail Resolution? 1 Answer
Terrainmap is lined 1 Answer
Unity splitting up terrains into equal heightmap resolution ones. 0 Answers
How can I programmatically stretch a Terrain? 1 Answer
Set Hightmap resolution while importing custom heightmap texture? 1 Answer