{"id":16645852,"url":"https://github.com/xyene/cube2sphere","last_synced_at":"2025-04-05T16:08:39.069Z","repository":{"id":57417768,"uuid":"41648107","full_name":"Xyene/cube2sphere","owner":"Xyene","description":"Python script to map 6 cube (cubemap, skybox) faces into an equirectangular (cylindrical projection, skysphere) map.","archived":false,"fork":false,"pushed_at":"2024-08-10T13:27:15.000Z","size":207,"stargazers_count":200,"open_issues_count":4,"forks_count":28,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-10-13T08:25:36.954Z","etag":null,"topics":["convert","converter","cubemap","graphics","image","texture"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Xyene.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2015-08-31T00:43:29.000Z","updated_at":"2024-09-20T23:39:17.000Z","dependencies_parsed_at":"2024-10-25T18:30:44.423Z","dependency_job_id":"bd6295bc-8e32-4940-b78b-c1d0c1dec807","html_url":"https://github.com/Xyene/cube2sphere","commit_stats":{"total_commits":16,"total_committers":5,"mean_commits":3.2,"dds":0.5625,"last_synced_commit":"aea3487f0753b74a4f0a774ea8585fc159b68743"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xyene%2Fcube2sphere","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xyene%2Fcube2sphere/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xyene%2Fcube2sphere/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Xyene%2Fcube2sphere/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Xyene","download_url":"https://codeload.github.com/Xyene/cube2sphere/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247361691,"owners_count":20926643,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["convert","converter","cubemap","graphics","image","texture"],"created_at":"2024-10-12T08:25:36.732Z","updated_at":"2025-04-05T16:08:39.049Z","avatar_url":"https://github.com/Xyene.png","language":"Python","readme":"cube2sphere [![PyPI version](https://badge.fury.io/py/cube2sphere.svg)](https://pypi.python.org/pypi/cube2sphere) [![PyPI](https://img.shields.io/pypi/pyversions/cube2sphere.svg)](https://pypi.python.org/pypi/cube2sphere)\n===========\n\n`cube2sphere` is a Python script to map 6 cube (cubemap, skybox) faces\ninto an equirectangular (cylindrical projection, skysphere) map. See\nalso [`sphere2cube`](https://github.com/Xyene/sphere2cube).\n\nUsage\n=====\n\n    $ cube2sphere -h\n    usage: cube2sphere [-h] [-v] [-r \u003cwidth\u003e \u003cheight\u003e] [-R \u003crx\u003e \u003cry\u003e \u003crz\u003e]\n                   [-o \u003cpath\u003e] [-f \u003cname\u003e] [-b \u003cpath\u003e] [-t \u003ccount\u003e] [-V]\n                   \u003cfront\u003e \u003cback\u003e \u003cright\u003e \u003cleft\u003e \u003ctop\u003e \u003cbottom\u003e\n\n    Maps 6 cube (cubemap, skybox) faces into an equirectangular (cylindrical\n    projection, skysphere) map.\n\n    positional arguments:\n      \u003cfront\u003e               source front cube face filename\n      \u003cback\u003e                source back cube face filename\n      \u003cright\u003e               source right cube face filename\n      \u003cleft\u003e                source left cube face filename\n      \u003ctop\u003e                 source top cube face filename\n      \u003cbottom\u003e              source bottom cube face filename\n\n    optional arguments:\n      -h, --help            show this help message and exit\n      -v, --version         show program's version number and exit\n      -r \u003cwidth\u003e \u003cheight\u003e, --resolution \u003cwidth\u003e \u003cheight\u003e\n                            resolution for rendered map (defaults to 1024x512)\n      -R \u003crx\u003e \u003cry\u003e \u003crz\u003e, --rotation \u003crx\u003e \u003cry\u003e \u003crz\u003e\n                            rotation in degrees to apply before rendering map (z\n                            is up)\n      -o \u003cpath\u003e, --output \u003cpath\u003e\n                            filename for rendered map (defaults to \"out\")\n      -f \u003cname\u003e, --format \u003cname\u003e\n                            format to use when saving map, i.e. \"PNG\" or \"TGA\"\n      -b \u003cpath\u003e, --blender-path \u003cpath\u003e\n                            filename of the Blender executable (defaults to\n                            \"blender\")\n      -t \u003ccount\u003e, --threads \u003ccount\u003e\n                            number of threads to use when rendering (1-64)\n      -V, --verbose         enable verbose logging\n\nSupported output formats depend on the Blender installation, but will\ngenerally include TGA, IRIS, JPEG, MOVIE, IRIZ, RAWTGA, AVIRAW, AVIJPEG,\nPNG, BMP, and FRAMESERVER.\n\n`cube2sphere` can be run in a headless environment (e.g., a server).\n\nExamples\n========\n\nIf we wanted to stitch 6 cube faces named `${face}.jpg` into a 2048x1024\nTGA equirectangular map, we could use the following command:\n\n    $ cube2sphere front.jpg back.jpg right.jpg left.jpg top.jpg bottom.jpg -r 2048 1024 -fTGA -ostitched\n\nThis would generate `stitched.tga` in the working directory.\n\nInstallation\n============\n\n`cube2sphere` can be easily installed with `pip`. It requires a Python 3 installation.\n\nIt assumes that [Blender](https://www.blender.org/) is installed and the `blender` executable is\nlisted in the system PATH environment variable. If it is not possible\nfor PATH to be edited (as in the case of an unprivileged user), the path\nto the `blender` executable may instead be passed through the `-b` flag.\n\nWindows\n-------\n\nInstall Blender, and add `blender.exe` to `PATH`. Finally,\n\n    pip install cube2sphere\n\nLinux\n-----\n\n    $ apt-get install blender\n    $ pip install cube2sphere\n\nMac OS X\n--------\n\nSimilar to Windows, install Blender, and add the `blender` executable\nto `$PATH`. Then,\n\n    $ pip install cube2sphere\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyene%2Fcube2sphere","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxyene%2Fcube2sphere","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxyene%2Fcube2sphere/lists"}