Mapping 3D coordinates floating values onto 2D coordinates degree system?

  • 0

    I'm working on a virtual tour software 'KRPANO', and I need to map current application which is built using A-frame library on KRPANO.
    The problem is with the sphere mapping, A-frame sphere uses 3D coordinates xyz unit is float where 0 is minimum and 5 is maximum.
    And KRPANO is using 2D coordinates namely (ATH - horizontal and ATV- vertical, unit is in degrees 0 to 360) Camera position is already set to origin. Scales are same, starting point are also same.I'm providing some sample values but I can not find any similarity between the data/


    Default set - (float 0 min and max 5)
    hotspot1 - (0.734923101615944', '1.50973902188607', '-4.68785245545922 )
    hotspot2 - (-3.68081908123542', '3.23003605760311', '0.943563586158858)
    hotspot3 - (0.262366451388869', '2.62632520987323', '4.21871908144714)


    Values after mapping should be near or approx to these values - (2D values 0 to 360)
    hotspot1 - ath="7.734923101615944" atv="1.50973902188607"
    hotspot2 - ath="-66" atv="-23"
    hotspot3 - ath="176" atv="-12"

Participate now!

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