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.

  • 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

  • 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.

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!