0

How do I go from panorama:

enter image description here

To this? It would be great to know the exact name of this texture as well. Spherical texture map is the first thing that came to my mind.

enter image description here

I've found this great tool to do a similar thing, but it is not what I need.

https://jaxry.github.io/panorama-to-cubemap/

enter image description here

abenci
  • 8,422
  • 19
  • 69
  • 134
  • 2
    From the function call `copyPixel(readData.width * lon / Math.PI / 2 - 0.5, readData.height * lat / Math.PI - 0.5, to);` it is clear that longitude and latitude vary linearly across the panorama, so it is even easier to convert this into a sphere map - compute the `(lon, lat)` of the ray and sample the pixel with the formula above. – meowgoesthedog Sep 07 '18 at 09:45
  • You can use the original image for a dual parabolic environment mapping. See [this paper](http://cgvr.cs.uni-bremen.de/teaching/cg_literatur/Spherical,%20Cubic,%20and%20Parabolic%20Environment%20Mappings.pdf) – Chuck Walbourn Sep 07 '18 at 18:41
  • see possible GLSL duplicate: [How to do a shader to convert to azimuthal_equidistant](https://stackoverflow.com/a/33015271/2521214) – Spektre Sep 10 '18 at 07:34

0 Answers0