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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

How do I set camera render mode to spherical?

Discussion in 'General Graphics' started by NIKNAIZ, Apr 23, 2016.

  1. NIKNAIZ

    NIKNAIZ

    Joined:
    Apr 15, 2016
    Posts:
    17
    Quite straight forward question. What happens now is what I see changes as I rotate my character view.
    For example:

    http://i.imgur.com/MHXV3a8.png

    And when I rotate my camera:

    http://i.imgur.com/hgyjz1I.png

    What I want is the distance of view not to change when I rotate my camera. How do I achieve this?
     
  2. cblarsen

    cblarsen

    Joined:
    Mar 10, 2007
    Posts:
    266
    I don't think that there is a simple way to do that.

    One way would be to only use custom shaders that clipped themselves at a fixed (spherical) distance from the camera.

    Another would be to draw a spherical object centered at the camera into the z buffer before all the other geometry. This could be done either by a highly detailed spherical mesh, or by wrting a shader that outputs a computed value to the z buffer as well as color (or actually instead of color)

    So: not without writing custom shaders I think.
    Or maybe I am missing something obvious. Hopefully someone else will spot that.
     
  3. Stardog

    Stardog

    Joined:
    Jun 28, 2010
    Posts:
    1,887
    You can just change the view distance of the camera. There is an option for spherical option in the Global Fog image effect you can add in later.
     
    cblarsen likes this.