Sie sind nicht angemeldet.

Lieber Besucher, herzlich willkommen bei: krpano.com Forum. Falls dies Ihr erster Besuch auf dieser Seite ist, lesen Sie sich bitte die Hilfe durch. Dort wird Ihnen die Bedienung dieser Seite näher erläutert. Darüber hinaus sollten Sie sich registrieren, um alle Funktionen dieser Seite nutzen zu können. Benutzen Sie das Registrierungsformular, um sich zu registrieren oder informieren Sie sich ausführlich über den Registrierungsvorgang. Falls Sie sich bereits zu einem früheren Zeitpunkt registriert haben, können Sie sich hier anmelden.

Hugues

Anfänger

  • »Hugues« ist der Autor dieses Themas

Beiträge: 1

Wohnort: Vernon, France

Beruf: Interactive tools dev - Real-estate Promotion

  • Nachricht senden

1

Freitag, 1. September 2017, 11:02

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

Zitat


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