Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Converting XY positions of hotspots on an equirectangular image to a sphere

Discussion in 'AR/VR (XR) Discussion' started by leeprobert, Feb 4, 2019.

  1. leeprobert

    leeprobert

    Joined:
    Feb 12, 2015
    Posts:
    49
    I need to add many hotspots to a 360 video as it plays, and I want to manage the process properly by logging the XY position of each hotspot onto the equirectangular image, and storing that information in an array. I'll then instantiate each Hotspot object and position it to the inner surface of the sphere that is hosting the 360.

    In order to do this I need a process of converting the XY cartesian coordinate to a Spherical position on the sphere, and then back to an XYZ cartesian coordinate.

    Has anyone tackled this problem before?
     
    ThreeFourML likes this.