get spherewidth

  • Hi,

    I would like to show the imagesize of the original equirectangular in a textfield.
    I know how to calculate it from the tilesizes in a multires setup, but how would I calculate it from the cubesize, if I use 'NORMAL' panos?

    This works fine for multires panos:

    sub(largestlevelindex, image.level.count, 1);
    copy(cubewidth, image.level[get(largestlevelindex)].tiledimagewidth);
    mul(spherewidth, cubewidth, Math.PI);

    Can it be done for non-multires as well?
    (if not, I will just add a variable to the <scene...>)


Participate now!

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