Search Unity

Over 1 million trees on 15x15km terrain. How to?

Discussion in 'World Building' started by artursachlee, Jan 4, 2019.

  1. artursachlee

    artursachlee

    Joined:
    Nov 13, 2018
    Posts:
    3
    Folks, I need some help how to draw a huge and dense forest on my large terrain. It requires over 1 million trees but FPS drops to 5-10 even with 400 000. I am looking for effective tools or tricks, any advice will be appreciated. The player will go there so cannot be completely replaced with forest textures.
     
  2. AlanMattano

    AlanMattano

    Joined:
    Aug 22, 2013
    Posts:
    1,501
    • Welcome to this forum!!
    • Try to add fog and 5km of camera visibility.
    • Use ECS:
    • Use tree game object with LOD.
    • Try to use a very simple shader for distant trees without a bump mapping, reflection, metallic maps, ambient occlusion, etc...
    • Add vertex ambient occlusion shadow to the mesh triangles.
    • Make the shader material that do not cast or receive shadows.
    • Do a unique custom simple transparent mesh that does not render but cast a shadow. face it looking the sun. Place this game object in each tree LOD. So that shadow is visible if close.
     
    Last edited: Jan 5, 2019
    Antypodish likes this.
  3. artursachlee

    artursachlee

    Joined:
    Nov 13, 2018
    Posts:
    3
    Vegetation Studio PRO did the job.