Open priyanka931 opened 2 years ago
If by "flat image," you mean an equirectangular projection, then no, nothing like that is built in. You'd have to develop such functionality yourself. Since the hot spot angles directly map to x/y coordinate in an equirectangular image, no complicated calculations are required to develop this.
Can you please help me with the calculation. For an example, I have this panorama with one hotspot
Now, on a click of a button I am changing it to equirectangular projection, like the given below with the help of haov and vaov.
And to attach the hotspot on the projection, I am adding hotspot to this projection as well, but with the older pitch and yaw. I am not able to calculate the pitch and yaw according to new haov and vaov. Aim is to add the hotspots on the first image and when the projection is seen, it should include all the hotspots drawn at the correct locations with respect to the projection.
Hi @mpetroff , Thank you for the quick response for the earlier query. It would be really great if you could help me out understanding the relation between (haov, vaov) and (pitch and yaw). With the changed haov and vaov, I need to find out the new pitch and yaw of the previously marked hotspots. Thanks in advance! And it's really a great library, Congratulations!
The haov
and vaov
set the image extents, while the pitch
and yaw
set the current view center, and the hot spot pitch
and yaw
set the position of the hot spot.
Changing the haov
and vaov
do not affect the positions of the hot spots on the sphere; it only changes how much of the sphere the image covers.
Thank you @mpetroff for the deep understanding. My problem still persists, I want to transform the panorama with it's hotspots into a flattened image, with all the hotspots still rightly placed at the exact locations ( I am reattaching the desired result below ). Kindly guide me with this to achieve the desired result, thanks in advance
!
The pitch
and yaw
of the hot spots are equivalent to latitude and longitude, so you'd position them the same way you'd position them on a map with an equirectangular projection.
Hi All, Is there any way to see the flat image of Panorama along with all the hotspots. My aim is to provide a feature which enables the user to see all the hotspots located on the flat image of Panorama, all at once.