Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Object Render Distance

Discussion in 'General Discussion' started by pluMmet, Jun 26, 2016.

  1. pluMmet

    pluMmet

    Joined:
    Jul 18, 2015
    Posts:
    133
    I have a space scene I am working on and in it I noticed that there is a range to where I can place a planet to where is will or will not be drawn by the renderer.

    In fact I found by accident the exact place where when half of an object is rendered and half not.

    This does not appear to be a light falloff issue as I'm using a VR Headset and it renders until I look directly at it. Once I found that spot I can drag the object just out of being rendered.

    So now that I see this I have found a use for limiting the render area to be much greater or to say I want to narrow the render field even more.

    but how?
     
  2. neginfinity

    neginfinity

    Joined:
    Jan 27, 2013
    Posts:
    13,301
    Your camera has a "Near Clipping Plane" and "Far Clipping Plane". Anything placed beyond clip planes will not be rendered on screen.

    http://docs.unity3d.com/Manual/class-Camera.html

    Also, moving clipping plane further will cause z-fighting artifacts to appear.
     
    Ryiah, landon912 and pluMmet like this.
  3. pluMmet

    pluMmet

    Joined:
    Jul 18, 2015
    Posts:
    133
    Thank you neginfinity :D
     
  4. Ryiah

    Ryiah

    Joined:
    Oct 11, 2012
    Posts:
    20,028
    Which can be solved by having multiple cameras where each one is handling a section of the distance. KSP uses this approach with four cameras (a UI camera, a close-up camera, a mid-range camera, and a distance camera).