Morning all,
I’ve run afoul of an odd issue when using SetNeighbors to setup LOD on a matrix of 3x3 terrains.
What’s happening, is there are darkened areas where the terrains join, like so:
And my terrains are laid out like so:
Here’s my code for setting up the relationships as well:
function SetupNeighbours() {
ter.SetNeighbors(ter2,ter4,null,null);
ter2.SetNeighbors(ter3,ter5,ter,null);
ter3.SetNeighbors(null, ter6, ter2, null);
ter4.SetNeighbors(ter5, ter7, null, ter);
ter5.SetNeighbors(ter6, ter8, ter4, ter2);
ter6.SetNeighbors(null, ter9, ter5, ter3);
ter7.SetNeighbors(ter8, null, null, ter4);
ter8.SetNeighbors(ter9, null, ter7, ter5);
ter9.SetNeighbors(null, null, ter8, ter6);
}
I’m pretty sure I’ve got them setup right - both the terrain layout image and the code is setup with X as north so the directions given to SetNeighbours should be correct. Does the function expect them from a different orientation (like X is east or something)?
The funny thing is that when I disable this function, the seams are invisible except in very few, hard to see instances (which has me considering going without for now).
Thoughts?
Thanks,
-V