All Projects → Xyene → Cube2sphere

Xyene / Cube2sphere

Licence: agpl-3.0
Python script to map 6 cube (cubemap, skybox) faces into an equirectangular (cylindrical projection, skysphere) map.

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Cube2sphere

Laravel Glide
Easily convert images with Glide
Stars: ✭ 333 (+177.5%)
Mutual labels:  image, convert
Pdf To Image
Convert a pdf to an image
Stars: ✭ 906 (+655%)
Mutual labels:  image, convert
Breakdance
It's time for your markup to get down! HTML to markdown converter. Breakdance is a highly pluggable, flexible and easy to use.
Stars: ✭ 418 (+248.33%)
Mutual labels:  converter, convert
Korkut
Quick and simple image processing at the command line. 🔨
Stars: ✭ 310 (+158.33%)
Mutual labels:  image, convert
Youtube Channel Name Converter
A Youtube Channel Name to ID Converter
Stars: ✭ 75 (-37.5%)
Mutual labels:  converter, convert
React Color Extractor
A React component which extracts colors from an image
Stars: ✭ 314 (+161.67%)
Mutual labels:  image, converter
Imagemagick
🧙‍♂️ ImageMagick 7
Stars: ✭ 6,400 (+5233.33%)
Mutual labels:  image, convert
svg2vector
Online batch converter of SVG images to Android vector drawable XML resource files
Stars: ✭ 39 (-67.5%)
Mutual labels:  converter, convert
Mybox
Easy tools of document, image, file, network, location, color, and media.
Stars: ✭ 45 (-62.5%)
Mutual labels:  image, converter
Ssfconv
Sogou input method skin file (.ssf file) converter, supports conversion to fcitx or fcitx5 format.
Stars: ✭ 44 (-63.33%)
Mutual labels:  converter, convert
Length.js
📏 JavaScript library for length units conversion.
Stars: ✭ 292 (+143.33%)
Mutual labels:  converter, convert
Wx Voice
Convert audio files between Tencent apps (Weixin / Wechat, QQ) and Silk codec with other general formats such as MP3 and M4A
Stars: ✭ 93 (-22.5%)
Mutual labels:  converter, convert
tex-equation-to-svg
Convert a TeX or LaTeX string to an SVG.
Stars: ✭ 34 (-71.67%)
Mutual labels:  converter, convert
Cashify
💸 Lightweight currency conversion library, successor of money.js
Stars: ✭ 329 (+174.17%)
Mutual labels:  converter, convert
xbytes
Parse bytes to human readable sizes (4747) → ('4.75 KB') and vice versa.
Stars: ✭ 17 (-85.83%)
Mutual labels:  converter, convert
Renderhelp
⚡️ 可编程渲染管线实现,帮助初学者学习渲染
Stars: ✭ 494 (+311.67%)
Mutual labels:  graphics, image
bafi
Universal JSON, BSON, YAML, CSV, XML converter with templates
Stars: ✭ 65 (-45.83%)
Mutual labels:  converter, convert
to-json-schema
Converts JS objects to JSON Schema
Stars: ✭ 83 (-30.83%)
Mutual labels:  converter, convert
Gli
jvm gli
Stars: ✭ 21 (-82.5%)
Mutual labels:  graphics, texture
Png To Ico
convert png to ico format
Stars: ✭ 88 (-26.67%)
Mutual labels:  image, converter

cube2sphere PyPI version PyPI

cube2sphere is a Python script to map 6 cube (cubemap, skybox) faces into an equirectangular (cylindrical projection, skysphere) map. See also sphere2cube.

Usage

$ cube2sphere -h
usage: cube2sphere [-h] [-v] [-r <width> <height>] [-R <rx> <ry> <rz>]
               [-o <path>] [-f <name>] [-b <path>] [-t <count>] [-V]
               <front> <back> <right> <left> <top> <bottom>

Maps 6 cube (cubemap, skybox) faces into an equirectangular (cylindrical
projection, skysphere) map.

positional arguments:
  <front>               source front cube face filename
  <back>                source back cube face filename
  <right>               source right cube face filename
  <left>                source left cube face filename
  <top>                 source top cube face filename
  <bottom>              source bottom cube face filename

optional arguments:
  -h, --help            show this help message and exit
  -v, --version         show program's version number and exit
  -r <width> <height>, --resolution <width> <height>
                        resolution for rendered map (defaults to 1024x512)
  -R <rx> <ry> <rz>, --rotation <rx> <ry> <rz>
                        rotation in degrees to apply before rendering map (z
                        is up)
  -o <path>, --output <path>
                        filename for rendered map (defaults to "out")
  -f <name>, --format <name>
                        format to use when saving map, i.e. "PNG" or "TGA"
  -b <path>, --blender-path <path>
                        filename of the Blender executable (defaults to
                        "blender")
  -t <count>, --threads <count>
                        number of threads to use when rendering (1-64)
  -V, --verbose         enable verbose logging

Supported output formats depend on the Blender installation, but will generally include TGA, IRIS, JPEG, MOVIE, IRIZ, RAWTGA, AVIRAW, AVIJPEG, PNG, BMP, and FRAMESERVER.

cube2sphere can be run in a headless environment (e.g., a server).

Examples

If we wanted to stitch 6 cube faces named ${face}.jpg into a 2048x1024 TGA equirectangular map, we could use the following command:

$ cube2sphere front.jpg back.jpg right.jpg left.jpg top.jpg bottom.jpg -r 2048 1024 -fTGA -ostitched

This would generate stitched.tga in the working directory.

Installation

cube2sphere can be easily installed with pip. It requires a Python 3 installation.

It assumes that Blender is installed and the blender executable is listed in the system PATH environment variable. If it is not possible for PATH to be edited (as in the case of an unprivileged user), the path to the blender executable may instead be passed through the -b flag.

Windows

Install Blender, and add blender.exe to PATH. Finally,

pip install cube2sphere

Linux

$ apt-get install blender
$ pip install cube2sphere

Mac OS X

Similar to Windows, install Blender, and add the blender executable to $PATH. Then,

$ pip install cube2sphere
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].