Sie sind nicht angemeldet.

1

Dienstag, 6. Februar 2018, 09:36

Prealign setting for hotspots

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?
Regards.

2

Mittwoch, 4. April 2018, 10:55

There are only two variables - new ath = old ath + prealign.
Use table app and sublime for multiple selection and bulk modification.

Cheers.

3

Donnerstag, 14. Juni 2018, 16:49

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 = ?
Regards.

4

Donnerstag, 14. Juni 2018, 19:42

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/userplugins/f…vectormath/#top

Here its source:
https://github.com/fieldOfView/krpano_fo…tormath.as#L141

You could try converting that into a Javascript krpano action.

Best regards,
Klaus