You are not logged in.

Hugues

Beginner

  • "Hugues" started this thread

Posts: 1

Location: Vernon, France

Occupation: Interactive tools dev - Real-estate Promotion

  • Send private message

1

Friday, September 1st 2017, 11:02am

Distorted hotspots scale calculation in a Cylindrical flat pano?

Hello everyone,
Thank you for letting me join the community,


The question is in the title.
I am actually working on a map of a City, and on it, i'm adding hotspots of old structures that were there a long time ago (Castle walls for example). The end user will be able to toggle hotspots visibility with switches on another layer. To do all of this , I need a perfect pixel match.


I settle all my hotspots in photoshop in differents layers, on the jpg I use in my flat pano. I then proceed to take all layers center coordinates in px, and convert x and y into ath and atv, using

Quoted


ath = ((x/width-0.5) * hfov)
atv = ((y/height-0.5) * vfov)

It works perfectly and hotspots are placed on the place I want them to be on the pano. On the other hand, I can't find a way to perfectly set the Scale of the hotspot.

I found some clues in the thread below but I didn't manage to convert it for a Flat Pano.
https://krpano.com/forum/wbb/index.php?page=Thread&threadID=7272


Thank you in advance for your answer,
Hugues