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.

tsukada

Anfänger

  • »tsukada« ist der Autor dieses Themas

Beiträge: 27

Wohnort: Tokyo, Japan

Beruf: Programmer

  • Nachricht senden

1

Montag, 11. Juli 2016, 11:49

How to know right bottom coordinates of distorted hotspot

Hi,

Is there any way to know h and v (or x, y) value at the right bottom point of distorted hotspot?

For example, if a hotspot is placed like:
hotspot[name].ath = -40
hotspot[name].atv = 0
hotspot[name].width = 200
hotspot[name].height = 100

At first I thought using screentosphere I could calculate, but this is not the case.

Any advice is appreciated.

Mudin

Anfänger

Beiträge: 27

Wohnort: South Korea

Beruf: VR Developer

  • Nachricht senden

2

Freitag, 15. Juli 2016, 02:49

Hello,

I've been trying to find the solution for this kinda coordinates.
I also asked question here:
lookto 3d hotspot


But I only success with ath, not atv.
I also used this example:
Example/Tutorial - interactive area in the pano (aligned distorted hotspot)


ath = hotspot.ath + atan(hotspot-width/original-cubeface-width);

if I do the same for atv, it is only working for bottom center, not bottom/top left/right.
Kindly let us know if you found or will find any solution.

thank you,

Mudin

tsukada

Anfänger

  • »tsukada« ist der Autor dieses Themas

Beiträge: 27

Wohnort: Tokyo, Japan

Beruf: Programmer

  • Nachricht senden

3

Freitag, 22. Juli 2016, 08:11

Thanks Mudin for your reply.


Your calculation for ath seems to work, but if a hotspot is placed far from 0 degree in atv, it does not work because the relation between width and h coordinates changes.

The things are far more complicated when hotspot's attributes like edge, rx, ry or rz are set other than default value.
*confused*


To calculate correctly, we need to know basic structure of this panorama stuff or krpano provides us function.

I hope klaus give us clear answer.