Re:Spherical Panoramas
by tobr on Sunday August 29, 2021 @03:53PM
(#28349901)
Are spherical panoramas usually stored as a single rectangular bitmap? Are there any compressed image formats that account for the distortion and optimize for the final projected output?
[ Parent
| on HN ]
A KTX file containing a cubemap compressed with Binomial would do the trick https://www.khronos.org/ktx/
equirectangular .EXR is a relatively common format I've seen in gamedev.
Just as a point of interest: If you're willing to pay the cost for a really good resampling algorithm, you can use a Gall-Peters projection. It's equal area instead of equal angle, so each pixel holds the same amount of surface area from the spherical image. Doing this, you could get a 2/Pi savings from the uncompressed image.
https://en.wikipedia.org/wiki/Gall%E2%80%93Peters_projection
However, it's easier to get good results with the equirectangular projection.