Dynamic vfov and hfov for Partial Panos.

  • Hi Guys,

    How can I calculate the vfov and hfov dynamically for the different panos(partial), having different dimensions?

    The online system that I am working on lets user upload all kind of panos (cylindrical, cubic, spherical and flat(partial)), I am loading this images into the viewer dynamically (i.e. creating the krpano xml using PHP and the information is stored in database). All the other types are not a issue but how can I create the partial panos dynamically? I guess I need a right formulation to calculate hfov and vfov.

    I hope I was able to explain my problem.

    Thanks a lot.

  • Hi,

    you can't calculate both (hfov & vfov) automatically for partial panos, you need to know at least one fov value,

    e.g. when you know the hfov then the vfov can be calculated from it,
    for spherical pano it's simple: vfov = hfov * imageheight / imagewidth,
    for a cylindrical it's a bit more complex but also very easy to get with some math,

    best regards,
    Klaus

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!