Search Unity

Modify focal distance/image plane withour change FOV

Discussion in 'Scripting' started by mattegaryDibris, Nov 28, 2013.

  1. mattegaryDibris

    mattegaryDibris

    Joined:
    Nov 28, 2013
    Posts:
    2
    Hi everybody,

    I've a question about focal distance and FOV.

    I'll try to explain my goal: I'm a researcher and in my lab we developed an immersive stereoscopic reality system, using an open source rendering engine. This engine let us do all the stuff we need in order to make our system work at its best, but the quality is quite awful. So we decide to switch to more advanced engine, like unity. Our system rely on a specific 3D visualization technique we patented, and it must modify the frustum of each virtual stereoscopic camera.

    Back in unity, for now I'm able to modify the frustum of each camera by modifing the projection matrix, but I need to set the position of the image plane, aka its distance from the camera, aka the focal length. I must not use the tipical trick of changing the focal length by changing the FOV, cause in our system i need to set this two parameters indipendently.

    So, back to my question:

    There is any way to directly set the focal length?

    In case of negative answer:

    Do you know where is positioned in the world the image plane, aka its distance from the camera or from the near plane?

    Thank you very much.

    Matteo
     
  2. hpjohn

    hpjohn

    Joined:
    Aug 14, 2012
    Posts:
    2,190
  3. mattegaryDibris

    mattegaryDibris

    Joined:
    Nov 28, 2013
    Posts:
    2
    Hi,

    actually the "looking through a window" thing should work fine for me, but since i'm in a stereoscopic environment, I need to know where is the image plane, aka the glass of the window =) In not stereo system the lackness of this information is not a problem, but when it came to stereoscopic setup, where the two image for left/right eye must be matched together, this information is very important.

    Focal Lenght and FOV are not the same thing, FL is the distance between the center of the camera and the image plane, and the FOV is the angle the describe how much is "wide" the view (more or less). They are not directly dependent because I may need to have a wider FOV with the same FL.

    Maybe in Unity does not exist an Image Plane at all, it's just that I need to know in order to know how to work...
     
  4. matthias2

    matthias2

    Joined:
    Sep 18, 2014
    Posts:
    1