I often have the need to transform cubic images into a cube map or skybox, so I have written this program in python to create them quickly and easily.
Dependencies are:
- Python 2.6 or higher
- Python Imaging Library (PIL)
- Images need to be the same size and square to avoid problems
Images need to be named with the following convention:
- f - front
- r - right
- l - left
- t - top
- b - back / behind
- d - down
For example - When you call the program and image files are named f_image.png, r_image.png, l_image.png , the proper command would be
python image2skybox.py %c_image.png
Here is an example output of this program: