Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 1.2 KB

README.md

File metadata and controls

30 lines (20 loc) · 1.2 KB

SkyBoxGenerator

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:

Original

After:

Front Image Right Image Back Image Left Image Top Image Bottom Image