Download

Description

Scripts to convert equirectangular map projection to foldable polyhedrons:

This can be used for maps to create polyhedral models of the Earth and other celestial bodies, generate skybox or create a foldable panoram as shown by Philo. This scripts are implemented for the papercraft polyhedral celestial bodies in my blog.

Cobemap fold Polyhedron fold

Required tools

  • Hugin - Panorama tool. nona console utility is used for extracting an individual face out of a equirectangular map or panorama image.
  • ImageMagick - Console tool for stitching individual faces together.

Installation instructions for Ubuntu or Debian.

apt-get install imagemagick hugin

Usage

Cubemap

Script cubemap.sh generates a full cubemap file Image-Cubemap.png and individual cube faces Image-Up.png, etc.

./cubemap.sh Image.png

Polyhedron

Script polyhedron.sh generates a map Image-Philosphere.png and its two parts in Image-S1.png and Image-S2.png. The designations of parts and polyhedron faces are taken from Philo’s script.

./polyhedron.sh Image.png

This script uses files mask-512-up.png and mask-512-down.png for manipulating triangular faces. Don’t remove them.

Scripts

Software

  • Map-Projections by Justin Kunimune - Java application that is capable of generating a plethora of projections.
  • PTGui - Proprietary program capable of generating a polyhedron out of a map (designated as philosphere).

Todo

  • Icosahedron, Fuller projection.
  • BAT script for Windows.
  • Python package.