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.

1

Tuesday, November 26th 2019, 12:29pm

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"