Skip to content
/ glskybox Public
forked from ChiChou/glskybox

Faster skysphere to skybox convertion using OpenGL

License

Notifications You must be signed in to change notification settings

sohow/glskybox

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

glskybox

A simple python tool for converting skysphere texture to skybox.

Requirements

pip install -r requirements.pip

Usage

usage: glskybox.py [-h] [-o OUTPUT] [-s SIZE] [-f] FILE [FILE ...]

Convert skydome texture to skybox

positional arguments:
  FILE                  source file name(宽高像素值必须是2的n次方)

optional arguments:
  -h, --help            show this help message and exit
  -o OUTPUT, --output OUTPUT
                        destination path
  -s SIZE, --size SIZE  output image size
  -f, --overwrite       overwrite existing output

Example:

Use a photo taken by PhotoSphere app, then run:

python glskybox.py your_sphere_photo.jpg

Check out the result in output/ directory.

If you give a directory as input, it will traverse all files inside it and render them.

About

Faster skysphere to skybox convertion using OpenGL

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%