mpetroff / pannellum

Pannellum is a lightweight, free, and open source panorama viewer for the web.
https://pannellum.org/
MIT License
4.15k stars 710 forks source link

Can I use a normal image (not panorama or photosphere) in pannellum? #1209

Closed lborgman closed 3 months ago

lborgman commented 3 months ago

I have both photosphere images and "plain images" that I want to use to show hotspots.

Is there a simple way to use "plain images" in pannellum?

Any hint about what I need to change in pannellum if I want to use "plain images"?

mpetroff commented 3 months ago

The short answer is no, or at least I wouldn't recommend it. Pannellum is only designed to work with panoramas.

You could take a regular image and reproject it as an equirectangular image with a narrow field of view and use it as a partial panorama, but, again, I wouldn't recommend it.

lborgman commented 3 months ago

Ok, thanks. then I know where to start.