Generate a skybox. Script handles the necessary projections of the spherical panorama (e.g. mercator map) onto the cube.
Script should be run in the same folder as the target image. Vectorized for the most part; will take some time for large images (e.g. will take ~2 mins for a 4096x4096x4096 skybox on 16384x8192 panorama image) command to run:
generate_skybox('mars.png',4096)
Parameters: filename - of image resolution - width of resulting skybox (Game engines generally support powers of 2 up to 4096)
Original:
After: