Hi!
I have some panoramas with hardcoded set of image hotspots on them.
Now I also adjust every image with prealign setting according its pitch and roll.
But while image is rotated well, hotspots are left in their old places (they have hardcoded ath/atv values, and on adjusted image usually look like moved aside)
How can i move them with aligned image? Is there any formula for that?
Prealign setting for hotspots
-
-
There are only two variables - new ath = old ath + prealign.
Use table app and sublime for multiple selection and bulk modification.Cheers.
-
There are only two variables - new ath = old ath + prealign.
Use table app and sublime for multiple selection and bulk modification.Cheers.
Thanks for reply.
As i understand, its working for ath and yaw alignment. But for pitch/roll it seems to be a bit more complex, could you write the same formula for new atv = ? -
Hi,
I have no quick sample yet, but about the math - there is the 'Vectormath' plugin from Aldo Hoeben which provides a 'rotatevector' function:
https://krpano.com/plugins/userpl…vectormath/#topHere its source:
https://github.com/fieldOfView/kr…tormath.as#L141You could try converting that into a Javascript krpano action.
Best regards,
Klaus
Participate now!
Don’t have an account yet? Register yourself now and be a part of our community!