Skip to content

Console script written on Go that convert an equirectangular/latlong map into an array of cubemap faces (like you would use to send to OpenGL)

License

Notifications You must be signed in to change notification settings

flash286/sphere2cubeGo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

sphere2cube Golang version

Console script written on Go that convert an equirectangular/latlong map into an array of cubemap faces (like you would use to send to OpenGL)

How Does it Work

Alt text

How to Use:

go install
go build
./sphere2cubeGo -i panorama.jpg

You can specify size of the tile face via param -s

./sphere2cubeGo -i panorama.jpg -s 2048

Also you can specify output dir via param -o

./sphere2cubeGo -i panorama.jpg -s 2048 -o /path/to/result/dir

About

Console script written on Go that convert an equirectangular/latlong map into an array of cubemap faces (like you would use to send to OpenGL)

Resources

License

Stars

Watchers

Forks

Packages

No packages published