Translating hotspot coordinates in a flat pano to image pixel coordinates

  • I created content using Kolor Panotour Pro and I used the "floorplan" to generate a map. On this map I placed hotspot links to pano images. I would like to figure out where the hotspots are in relation to the pixels of the image. for example I have a 1000 x 1000 image and I have placed 5 hotspots on it. 4 at each of the corners 100 pixels in from each side. I also placed one hotspot in the center.

    In pixel coordinates they would be as follows (based on 0,0 at the upper right of the image):
    upperleft - x=100 y=100
    upperright - x=900 y=100
    lowerleft - x=100 y=900
    lowerright - x=900 y=900
    centerpoint - x=500 y=500

    In the .kpt file (source file for Kolor Panotour Pro)
    upperleft - <spot type="point" relativeY="0.10108" y="2.58103" objectId="1090" x="9.98199" relativeX="0.09988">upperright - <spot type="point" relativeY="0.100792" y="2.55937" objectId="1092" x="130.119" relativeX="0.900792">
    lowerleft - <spot type="point" relativeY="0.901214" y="62.5911" objectId="1093" x="10.028" relativeX="0.100187">

    lowerright - <spot type="point" relativeY="0.900747" y="62.556" objectId="1966" x="130.077" relativeX="0.900514">

    centerpoint - <spot type="point" relativeY="0.501401" y="32.6051" objectId="1968" x="70.035" relativeX="0.500234">


    In the published main .xml file
    upperleft - ath="-0.400120" atv="-0.398920"upperright - ath="0.400792" atv="-0.399208"lowerleft - ath="-0.399813" atv="0.401214"lowerright - ath="0.400514" atv="0.400747"centerpoint - ath="0.000234" atv="0.001401"
    How can I translate the coordinates in either the .kpt file or the main .xml to pixel coordinates? What is the math?I would like to do this by just reading in either the .kpt file or the main .xml with an external program and outputting the conversion.
    Help?


Participate now!

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