In unity, the edge of the height field tile has gap

   2292   3   0
User Avatar
Member
23 posts
Joined: Oct. 2021
Offline
I am trying to import the height field from Houdini to Unity, and since it is too big, I used the HeightField Tile Split node to split it into 4 pieces.
But when I import it into Unity, I find that there are gaps between each height field tile.

The HeightField Tile Split node parameter is the default.
If I change Voxel Padding, Tile Lower Overlap or Tile Upper Overlap, the terrain will be error.

I also tried Reconnect button in Unity Terrain component, but nothing happened either.

When I create a terrain in Unity, after clicking on Reconnect button and then using a brush to draw from the gap, the two pieces of terrain will be welded together. This operation does not work for terrain generated by Houdini.

How do I solve this problem?
Edited by misakacirno - Jan. 4, 2023 05:44:27
User Avatar
Member
23 posts
Joined: Oct. 2021
Offline
The process of trying
Create 2 terrain in Unity:


Draw some height:


Click the Reconnect (Note the edges of the flat terrain, where the normals seem to be modified):


The brush now can across 2 terrain:


Draw at the gap, the gap will be fill:


There is no gap even when you look at it in magnification:


Try same way at terrain from Houdini:
Edited by misakacirno - Jan. 4, 2023 06:18:56

Attachments:
1.png (1.3 MB)
2.png (871.6 KB)
3.png (961.8 KB)
4.png (792.5 KB)
5.png (1.3 MB)
6.png (301.8 KB)
7.png (590.3 KB)

User Avatar
Member
23 posts
Joined: Oct. 2021
Offline
It seems to me that a lot of people have the same problem:
https://www.sidefx.com/forum/topic/75955/ [www.sidefx.com]
https://www.sidefx.com/forum/topic/58330/ [www.sidefx.com]
Edited by misakacirno - Jan. 5, 2023 06:29:18
User Avatar
Member
23 posts
Joined: Oct. 2021
Offline
After some research, I think I know the problem.
In short, gaps occur because each height field has a different minimum and maximum value in the Y direction, which results in a difference in the mapping of terrain heights in Unity, resulting in gaps.

The way to solve this problem is to make sure that the minimum and maximum values for each terrain tile are the same.
I think this is a problem that should be solved in the plugin, adding the same mapping range to the tiles of the map to ensure that there are no gaps.
  • Quick Links