GL Skeleton is a 3D OpenGL application template based on PySide6 and gl46. GL Skeleton requires at least Python 3.11 and OpenGL 4.6, and runs on Windows and Linux.
If you enjoy the repository, please give my repo a star ⭐ ⬆️.
- Python >= 3.11
- OpenGL 4.6
- Runtime dependencies (managed by uv, see
pyproject.toml):- PySide6
- PyOpenGL
- numpy
- Pillow
- gl46
- Demo cube demonstrates the usage of framebuffer and renderbuffer
- Demo fractal demonstrates the usage of compute shader
- Mouse control (left drag pan, right drag / wheel zoom)
- Up/Down adjust max iterations
- Demo tessellation demonstrates the usage of all 5 shaders
- Up/Down adjust inner tessellation, Left/Right adjust outer
Tested on Python 3.11.8 and Windows 10 OS. This project uses uv for dependency management.
Clone the repository, then
cd glskeleton
uv sync
uv run python -m glskeletonAlternatively, use the entry point defined in pyproject.toml:
uv run glskeletonA .vscode/launch.json is included for VS Code users:
- Open the project root in VS Code.
Ctrl+Shift+P→ "Python: Select Interpreter" → choose.venv/Scripts/python.exe(Windows) or.venv/bin/python(Linux/macOS).- Press
F5, or open the "Run and Debug" panel and click the green triangle next to the "glskeleton (module)" configuration.
Note: Do not use the ▶ button in the top-right corner to run
glskeleton/app.py. That button executespython glskeleton/app.pydirectly and bypasses the debug configuration, which causes relative imports to fail withattempted relative import with no known parent package. If you prefer the ▶ button, openrun.pyin the project root instead.
For PyCharm, Spyder, etc., configure the run target to execute the module glskeleton (equivalent to python -m glskeleton) rather than the file glskeleton/app.py. See the respective IDE's documentation for details.
The command line form always works regardless of IDE:
uv run python -m glskeleton

