Panorama mapping on an Irregular Truncated Icosahedron by Max and Fabian Hombsch

My brother Fabian and I mapped a full panoramic image to a sort of polyhedron. The script we developed transforms an equirectangular full panorama (360°x180°) into two printable pages of the W32 faces, with only one command line execution in linux.

Assembled irregular truncated icosahedron Two semi-hedrons, to be assembled to the irregular truncated icosahedron

This polyhedron got assembled of the four templates created by the linux script file. We inserted a core to enhance the stability of the structure. All you need to create such a polyhedron is a full 360° by 180° spherical (equirectangular) panorama image file; the script we made can convert it into a template for the polyhedron assembly:

-->
+

Polyhedron Geometry

The irregular truncated icosahedron consists of 12 pentagons and 20 irregular hexagons. The hexagons have been chosen to be irregular to obtain surfaces of approximately the same size. Accordingly the distance of face centers to the center of the polyhedron are almost the same for the pentagons and the hexagons. The irregular hexagons have three long and three short sides. You can see the geometric calculations on the page Geometry of the Irregular Truncated Icosahedron I made with Java-Script (in german). Views on polyhedrons are available under Interactive Polyhedra (works with Java, only text will appear if it isn't installed).

Development of the software

After calculating the geometry I made scripts for the Adjust-Plugin of Panotools, just like Philo's scrips for the Rhombicuboctahedron. With those scripts each face requires one execution of the Adjust-filter and inserting the result at the right position on the printable page.

Automatization for the linux shell

My Brother Fabian then coded a shell script, that calculates the images according to the defined angles with the command line stitching program Nona, and uses ImageMagick to insert them at the right position in the final pages. Because nona interprets the angles the other way round (p and o lines have to get switched), angles have to get converted before. In order to be able to use scripts also suited for use with the Adjust-Plugin of Panotools, we made the angle conversion part of the script, rather than inserting preprocessed angles. If you want to convert some angles, see the Angle conversion page (german). The separation of scripts and shell execution allows to implement other polyhedrons in the future.

Usage and Required Software

Download the Irregular Truncated Icosahedron package as zip-compressed archive and extract it into a new folder of your choice.

Linux Requirements: ImageMagick and the Nona stitching Engine. Both are included in the Hugin panorama editor installation. Those who want to use the Adjust-Plugin will need The Gimp as well. (see Plugin Usage)
Linux Usage: Run the shell script Autohedron.sh with an input panoramic image as its first parameter. The second parameter must be the only available hedron, i.e. irr_trnc_Icosa ("irr_trnc_Icosa-I" will work as well, so you don't have to correct auto completion). The third parameter must be the name of the result file. A roman page numbering and png ending is automatically added. The following line shows how to execute the script:
you@computer:/.../yourpanoramas$ /.../Autohedron.sh yourpanorama irr_trnc_Icosa result
This example starts from the directory of the panorama (yourpanoramas), this is where the result will get saved as well.

Windows Requirements: A picture editing program is needed, capable of using the Adjust-Filter of Panotools, for example Irfan View (small but powerful and freeware Image Viewer), The Gimp (freeware but might be strange to Windows users) or Adobe Photoshop (Professional yet easy to use, but expensive). The Panotools Plugins have to be installed for that program.

Mac Requirements: Works also with the plugins. Graphic converter is said to be capable of using the plugins.

Plugin Usage: (Windows / Mac / Linux)

Repeat the whole series for page II.

Related software

As already mentioned Philo has presented a similar sort of polyhedron, the Rhombicuboctahedron.
Bruno Postle presents a pearl script, the Orange Slicer.

Possible enhancements for the future

Completed Enhancements / Fixed Bugs


Last update on november 4, by Maximilian Hombsch, e-mail: max@hombsch.de. Any comments are welcome.