0

I am creating open-world scene with terrain tiles. Currently here are 9 Terrain tiles, which are repositioned via setting GameObject.transform.position to keep player character in the center of the terrain. However, when tile is moved, some tree models are not rendered any more on that tile.

  • This applies to the tree models that are positioned on the terrain by painting them with tree painting tool. Trees that are applied as child objects to terrain gameobject are positioned fine.
  • Initially, when starting the game, the trees show up fine, they vanish only on tiles that are moved.
  • The collider is still in the place it should to be in relation to the terrain tile, but invisible.
  • The tree models not rendered are the ones with LOD groups (gameobject with the LOD level mesh import and mesh renderer as a children of container gameobject). Basically the trees that are set up like is suggested in all Unity materials for optimal performace.
  • Tree models that have no LOD groups are rendered correctly after moving the tile. EDIT: Trees may have LOD group component, but they are rendered only if their mesh and meshrenderer are connected directly to the main gameobject, not child gameobject.
  • Grass (texture billboards) carries over fine.
  • The models are created in Blender, not Unity default trees.

So far I have not been able to find any other difference except LOD groups. So has somebody encountered something similar and found a solution to have their trees show up on moved tiles ? Or is there some other preferred method for moving the tiles, instead of setting the .position ?

Moridio
  • 1
  • 1

0 Answers0