3d Hotspot in Depthmaps to screen

  • Hello,

    I need to get if a hotspot positioned with tx,ty,tz is visible where I am looking at.
    I am trying to convert with spacetosphere and then check it with screentosphere but the result is N/A I guess that the spacetosphere depth value is missing but the screentosphere function does not have this possibility.

    krpano.spheretoscreen(krpano.spacetosphere(current.tx, current.ty, current.tz).h, krpano.spacetosphere(current.tx, current.ty, current.tz).v)

    Pc {x: NaN, y: NaN, z: -430.07449800019253}

    Is there any way to get the hotspots array?

    What I am looking for is similar to this
    https://www.youtube.com/watch?v=Wf2SJ-9qK18


    tnks

    Edited 3 times, last by pleforhod (April 8, 2021 at 5:57 PM).

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!