Hi!
I have a problem trying to place a crop from the original equirectangular pano.
So, I have the cropped image dimensions and the position of the crop in the original equirectangular pano.
I, calculated the ath, atv s like this:
Code
Crop upper left corner = ox, oy
Pano equirectangular dimensions = pw, ph
ath = ((ox / pw) - 0.5) * 360
atv = ((oy /ph) -0.5) * 180
That works just fine.
I'm having trouble with the width and height.
I found this in the documentation:
Quote from krpanoNote - when using distorted hotspots, then the size is relative to an internal base-size where 1000 pixel are covering a 90 degree field of view.
So I tried this:
Width is kinda close, height, not so much.
I tried height = "prop", a bit better but no cigar.
Well, I tried a bunch of different stuff, nothing worked.
Please help out!