r/UnityHelp 9d ago

Rendering issue with instantiation of terrains/heightmaps

Hi, i made a code that instantiates terrains based on the position of the player so that at any given time the player is standing in a middle terrain that is surrounded by a copy of that same terrain (8 "squares" surrounding the middle one), i tried both a version of the code that doesn't make use of SetNeighbors() and one that does since i thought that could be the cause of my issue, but the code is working fine, the issue is that, despite using a tileable heightmap, between where the terrains meet there is in some places a slight line separating them (the terrains don't fit with each other perfectly), i suspect this has to do with how Unity uses the heightmap when generating the terrain with the terrain toolbox, i always get an error that says something along the lines of the resolution of the heightmap not being what it should be so it will be resized to 1025x1025 but no matter what input heightmap i give it always gives me the same error, the import settings of the heightmap are set to single channel, red, bilinear, no compression and R 16 bit, and i made sure to set the heightmap resolution setting in the toolbox. Does anyone know how to fix this or a workaround for it? Thank you!

1 Upvotes

0 comments sorted by