Hi,
I've been struggling and testing for hours and can't find how the relation between pixel size/distance and krpano ath value works *cry*.
I have a pano image of 7882px * 3941px. Let's say I have an image of 100px * 100px positioned at ath=20 atv=0 and I want a second image of 100px * 100px EXACTLY 100px to the right of it (so stuck to it, no overlap, no gap in between). How do I calculate the ath of the 2nd hotspot image?
I need a formula for it, because the hotspot size will be different every time (e.g. 130px, 246px, etc) and not always 100px.
I thought I could calculate the ath from pixel value as followed:
but somehow with 100 and 7882 this gives me 4.567369 (the middle example in screenshot attached), which is way too little. I noticed it was 4/10 of what it should be (but I have no clue why!), so multiplied it by 2.5 (or 4/10) to get the example on the right, which fits seamlessly and is what I want to achieve. But when the hotspot size changes, to 200px for instance (example on the left), this value doesn't work anymore and there is a gap.
Anybody knows how I can get the ath position/difference if I know the pixel position/difference?