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

Question How To Create a FishEye?

Discussion in 'Editor & General Support' started by renman3000, Aug 24, 2023.

  1. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,681
    Hi there,
    I want to create a Fish Eye Camera effect.

    The Unity docs say Unity can, but maybe they are outdated? - Something about a Standard Effects Package (which is not currently in the Unity Registry) and also Antialiasing, but since I am not getting Step 1, I guess Step 2 is not happening.

    I did find an asset in the store, but I did not find it to be reliable.


    So, does anyone know of a good way to generate a fish eye camera lens?

    Thanks
     
  2. halley

    halley

    Joined:
    Aug 26, 2013
    Posts:
    1,869
    If you don't need it for the entire screen, I would suggest a render texture, applied to a mesh with UVs that are not perfectly rectangular. If you do need it for the entire screen, that may still be the best approach but the effect can break down at that scale and it can be a significant performance hit; a post-processing step can do it more smoothly but it's still going to be a costly effect.
     
    renman3000 likes this.
  3. renman3000

    renman3000

    Joined:
    Nov 7, 2011
    Posts:
    6,681
    thanks @halley
    I do need the entire scene to appear as such.

    so a render texture? One of the free assets I tried from the store had this as per of its system.

    not appeared the texture was “warped”? And this texture connects to the camera as “distortion field”?