Calculate the position of an element inside a photosphere
<p>Im using an <a href="https://aframe.io/docs/0.3.0/primitives/a-sky.html" rel="nofollow noreferrer">a-sky</a> element to display a 360° photosphere.</p>

<p>My problem is that I have to place inside the photosphere some elements that must act like 'markers'; but I do not understand how to calculate the <code>x-y-z</code> position of those elements. </p>

<p>For example, lets say that I have a picture with size 4096x2048 and I want to place a simple box at 169,1349.</p>

<p>I know the radius of the sphere (5000), i know the size of the box (I can choose a convenient size), I only know how to retrieve the position of that "pixel position" (169,1349) inside the sphere.</p>

<p>Any hints?</p>