You are not logged in.

Dear visitor, welcome to krpano.com Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.

tsukada

Beginner

  • "tsukada" started this thread

Posts: 27

Location: Tokyo, Japan

Occupation: Programmer

  • Send private message

1

Monday, July 11th 2016, 11:49am

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

Beginner

Posts: 27

Location: South Korea

Occupation: VR Developer

  • Send private message

2

Friday, July 15th 2016, 2:49am

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

Beginner

  • "tsukada" started this thread

Posts: 27

Location: Tokyo, Japan

Occupation: Programmer

  • Send private message

3

Friday, July 22nd 2016, 8:11am

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.