mpetroff / pannellum

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

Nadir/zenith missing for `haov` < `360`? #1028

Open strarsis opened 3 years ago

strarsis commented 3 years ago

When the multires generator script is used on a partial panorama (haov < 360), the nadir and zenith are both incomplete, even with vaov = 180. Is this an unavoidable side-effect of using a partial panorama? Or can this be avoided?

mpetroff commented 2 years ago

Is the aspect ratio of your image correct for the haov and vaov parameters you're specifying? With a square image, I have no problem getting the panorama to go to the nadir and zenith when specifying generate.py --haov 180 --vaov 180. However, if the aspect ratio is different, i.e., incorrect for the specified angles of view, the panorama won't go to the nadir and zenith since nona won't distort the image (the specified vaov isn't used for the cubemap conversion, since the Hugin PTO format only takes the haov).