mpetroff / pannellum

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

Allow cubemap input to generate.py #894

Open laundmo opened 4 years ago

laundmo commented 4 years ago

I have a very large panorama as a cubemap, which is too large for just serving as a cubemap.

as far as im aware, the generate.py cant take a cubemap input.

mpetroff commented 4 years ago

Yes, that's correct. As cubemaps come is various arrangements, it's not as simple as supporting equirectangular input, which is a de facto standard.

laundmo commented 4 years ago

may i suggest a simple seperate input? this would be the best for very large panoramas since after some size, image procesing gets very slow.

in my case im probably just going to convert my images to tif and manually stop the generate.py after it has made seperate cubemaps, replace them with my extremely large ones, and let it continue.

mpetroff commented 4 years ago

Make sure you set the --cubesize argument to match your cube face size. If you comment out the subprocess.check_call([args.nona,... line and replace it with input() (or raw_input() for Python 2), it won't make cube map faces and will instead pause until you press enter.