Search Unity

is Frustum Culling enabled by default

Discussion in 'General Graphics' started by CloudFs, Jan 22, 2018.

  1. CloudFs

    CloudFs

    Joined:
    Jun 19, 2014
    Posts:
    64
    i'm developing for android and i wonder if i need to write a script that detects what is being seen by the camera and disable the rendering for everything else ? because i'm ot seeing that happen in the scene view ..
     
  2. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    Frustum culling is automatic, you don't need to do anything. Writing a script will only slow things down. The scene view is a separate camera that shows the entire scene, not what's seen by any given camera in the scene. (Which is good, because it would be impossible to work on scenes if you couldn't actually see everything that's in them.)

    --Eric
     
    karl_jones and CloudFs like this.
  3. dadude123

    dadude123

    Joined:
    Feb 26, 2014
    Posts:
    789
    If you are curious, there is a way to see what the main camera is seeing,
    simply turn on the occlusion culling window, in visualization mode it should show you what exactly is being culled from the main cameras frustum. And if you baked the occlusion culling data, you will also see that it hides stuff hidden behind other objects.
     
  4. CloudFs

    CloudFs

    Joined:
    Jun 19, 2014
    Posts:
    64
    oki thank you guys !