pannellum icon indicating copy to clipboard operation
pannellum copied to clipboard

Hotspot divs are... Wobbly ?

Open Orsucciu opened this issue 4 years ago • 2 comments

Hello,

I am trying to make a sort of exhibit, where i'd put better quality pictures of the panels, and they would be links to the files themselves (or maybe just a pop-up) and i've noticed that the divs wobble around a lot.

Is my low-quality panorama picture to blame or can i tweak this somehow ?

(attached, a demo of what i'm trying to do) https://replit.com/@Orsucciu/pannellumTest#index.html

Thanks

Orsucciu avatar Apr 20 '21 09:04 Orsucciu

Hot spots are positioned based on their center. The panorama itself, however, has perspective distortion when displayed, so the edges of large hot spots won't match the panorama as the view changes.

One option, probably the easiest, would be to edit the panorama to create a high resolution version that directly includes the poster images projected on to it. Otherwise, you would need to figure out how to use CSS 3D perspective transforms to properly project the hot spots, as is discussed in #974.

mpetroff avatar Apr 20 '21 14:04 mpetroff

Yeah, i thin editing the picture is the easiest. Thanks!

Orsucciu avatar Apr 21 '21 04:04 Orsucciu