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

Cubemap panorama #1215

Open zeleamaaa opened 1 month ago

zeleamaaa commented 1 month ago

Excuse me, I would like to ask if there is an explanation about panorama cubemaps in the example section, such as how to combine the 6 images or is there a reference that I can read to understand how it works? Thank you in advance.

mpetroff commented 1 month ago

The six images need to be provided in the order +z, +x, -z, -x, +y, -y (this is mentioned in the docstring / API documentation). Otherwise, the format is a standard OpenGL cubemap.

There's also a cube map example.

However, it's the least well supported format for Pannellum and doesn't include any loading progress indication, so I'd tend to avoid using it (and I keep thinking about deprecating it).