Skip to content
A number of scripts to convert between various virtual reality image formats.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CubemapFromEqui.py
EquiFromDualFish.py
EquiFromTiles.py Add files via upload Apr 16, 2017
LICENSE Initial commit Apr 15, 2017
README.md Update README.md Apr 16, 2017
createEquiFromSquareFiles.py
negx.jpg Add files via upload Apr 15, 2017
negy.jpg Add files via upload Apr 15, 2017
negz.jpg
posx.jpg
posy.jpg Add files via upload Apr 15, 2017
posz.jpg

README.md

Generating Equirectangular Images

In time, this will become a collection of scripts to convert to and from equirectangular images and cube maps.

A more detailed explanation of how the script works can be found on my website, www.paul-reed.co.uk/programming.htm

Equirectangular from individual cube map files

Output Image

Prior to using this script you will need to install Python Imaging Library - PIL. Once installed, copy the createEquiFromSquareFiles.py file to your computer. Open up either terminal, or command prompt and then run the following command replacing the file path with a path to the folder containing the six cube map images on your computer:

python createEquiFromSquareFiles.py "/Users/paulreed/Dropbox/Virtual Reality/GitHub/"

Once complete the script will save an equirectangular image in the folder containing the six cube map images.

Licences

Cube map images used as the example inputs are the work of Emil Persson, aka Humus [http://www.humus.name] under a Creative Commons Attribution 3.0 Unported License. [http://creativecommons.org/licenses/by/3.0/]

You can’t perform that action at this time.