Current version: v0.1.0
A GUI tool that turns an equirectangular panorama (2:1) — accepts PNG,
JPG, TGA or BMP as input — already AI-processed for minimal continuity,
into a 6-face skybox in the classic GoldSrc/Xash3D format
(ft/bk/up/dn/rt/lf.tga). Interface available in Portuguese and English
(switchable at any time via the Language menu).
License: MIT — free, anyone can adapt/redistribute it however they
like, with no liability for the authors for any kind of damage; the only
requirement is keeping credit for the original version. Full text in
LICENSE.
Spiritual successor to the old SkyPaint, with two key differences:
- Uses
cmft(BSD-2-Clause) as the equirect → cubemap reprojection engine, instead of reimplementing the projection math from scratch. - Treats the
up(zenith) face differently from the other 5 — it's the point of maximum distortion in the equirectangular projection and the one most exposed to the player (seedocs/DECISOES.md, in Portuguese).
Go to Releases →
download SkyForge.exe from the latest release → double-click it.
No need to install Python, PySide6, or cmft separately — everything is
bundled into a single executable (built with PyInstaller,
build_windows.spec). This is the recommended path for anyone who just
wants to use the program; the sections below (Setup, building cmft) are
only for people working on the code.
Functional conversion pipeline, tested with real photos and validated
in-game (PrimeXT): ft/bk/rt/lf/up already confirmed seamless —
only dn hasn't been tested in-game yet (rarely visible, usually covered
by terrain on most maps). Details in docs/DECISOES.md (Portuguese).
Tested running for real on the user's Windows machine (SkyForge.exe
bundled via PyInstaller) — not just theory/simulation in a development
session.
git clone --recurse-submodules https://github.com/Hidrocarbono/skyforge
cd skyforge
python3 -m venv .venv && source .venv/bin/activate
pip install -r requirements.txtSkyForge calls the cmft_cli binary as an external process — it needs to
be built once, it doesn't ship pre-built in the repository.
Linux (tested during this project's development):
cd external/cmft
chmod +x dependency/bx/tools/bin/linux/genie
./dependency/bx/tools/bin/linux/genie --file=scripts/main.lua --gcc=linux-gcc gmake
cd _projects/gmake-linux
make config=release64 cmft_cliThe binary ends up at external/cmft/_build/linux64_gcc/bin/cmftRelease
(the internal name for the cmft_cli target — not a mistake, see the
comment in src/skyforge/cmft_wrapper.py).
Windows (cmft.exe): the simplest, already-validated way is not to
compile on Windows itself — it's to download the ready-made .exe from
GitHub Actions (.github/workflows/build-cmft-windows.yml), which
cross-compiles it on every relevant push. Go to Actions in the GitHub
repository, open the latest "Build cmft.exe (Windows)" run, and download
the cmft-windows-x64 artifact.
Why not build directly on Windows: cmft has a compiler-detection bug
that misidentifies any GCC/MinGW targeting Windows as MSVC (_WIN32 is
checked before __GNUC__), breaking the build with native MinGW the same
way it would break cross-compiling from Linux. Fixed via
patches/cmft-fix-mingw-compiler-detection.patch (applied automatically
by the GitHub Actions workflow) — see the patch header for details.
Tested during development: cross-compiled (mingw-w64 on Linux) and
actually run under Wine, successfully converting a real panorama.
If you'd rather build it yourself instead of downloading from Actions
(Linux, with mingw-w64 installed):
git -C external/cmft apply ../../patches/cmft-fix-mingw-compiler-detection.patch
cd external/cmft
x86_64-w64-mingw32-g++ -std=c++11 -msse2 -fno-rtti -fno-exceptions -O2 \
-D__STDC_LIMIT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_CONSTANT_MACROS \
-Idependency -Isrc/cmft -Isrc -Iinclude \
src/cmft/allocator.cpp src/cmft/cubemapfilter.cpp src/cmft/clcontext.cpp \
src/cmft/image.cpp src/cmft/common/stb_image.cpp src/cmft/common/print.cpp \
src/main.cpp -o cmft.exe -static -lgdi32 -lopengl32On any platform: point the SKYFORGE_CMFT_PATH environment variable to
the compiled binary, or provide the path in the GUI itself.
python3 main.pyOn startup, a splash screen with the SkyForge logo shows for ~1.2s before
the main window appears — generated by scripts/gen_splash.py (pure
PIL, no external asset; re-run it if you want to change the look).
src/skyforge/
├── cmft_wrapper.py # builds and calls cmft (--output0params tga,bgra8,facelist)
├── goldsrc_export.py # renames posx/negx/... -> ft/bk/up/dn/rt/lf (SEE WARNING IN FILE)
├── pipeline.py # orchestrates: seam_check -> pole_treatment -> cmft -> goldsrc_export
├── pole_treatment.py # low-frequency treatment for the `up`/`dn` face
├── seam_check.py # validates the longitude seam of the input equirect
└── testpattern.py # generates a per-face labeled test pattern, for in-game orientation checks
gui/
├── main_window.py # PySide6 window (input, parameters, preview, log, progress)
├── i18n.py # pt/en translations, used by main_window.retranslate()
└── assets/splash.png # splash screen, generated by scripts/gen_splash.py
scripts/
└── gen_splash.py # generates gui/assets/splash.png (reproducible, no external asset)
patches/
└── cmft-fix-mingw-compiler-detection.patch # fixes cmft's compiler-detection bug
build_windows.spec # bundles everything (app + cmft.exe) into a single SkyForge.exe (PyInstaller)
requirements-build.txt # requirements.txt + pyinstaller
.github/workflows/
├── build-cmft-windows.yml # builds only cmft.exe (cross-compile) on every relevant push
└── build-skyforge-windows.yml # bundles the full SkyForge.exe (2 jobs: cmft + PyInstaller)
Needs to run on Windows (PyInstaller bundles the Python interpreter
itself, unlike cmft.exe this can't be cross-compiled from Linux):
pip install -r requirements-build.txt
# place a compiled cmft.exe at the repo root before this step
pyinstaller --noconfirm build_windows.spec
Result at dist/SkyForge.exe.
Full technical decision log and debate that led to this architecture:
docs/DECISOES.md (Portuguese).
Authors of the initial version (v0.1.0): Hidrocarboneto and Claude (Anthropic).
SkyForge is also built on top of other people's work and depends directly
on cmft (Dario Manesku,
BSD-2-Clause) as its conversion engine — no reprojection math was
reimplemented here. Full list of dependencies, authors and licenses
(including Python libraries): THIRD_PARTY_NOTICES.md.
The same list, along with the version and license, also appears inside the program, under Help → About.