Skip to content
Public template

About

GL Skeleton is a 3D OpenGL application template based on PySide6 and PyOpenGL

Topics

Resources

Stars

10 stars

Watchers

1 watching

Forks

Repository files navigation

GL Skeleton

CI

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 ⭐ ⬆️.

Screenshot

screenshot screenshot screenshot

Requirements

  • Python >= 3.11
  • OpenGL 4.6
  • Runtime dependencies (managed by uv, see pyproject.toml):
    • PySide6
    • PyOpenGL
    • numpy
    • Pillow
    • gl46

Current Features: ⚙️

  • 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

Run

Tested on Python 3.11.8 and Windows 10 OS. This project uses uv for dependency management.

Command line (recommended, works everywhere)

Clone the repository, then

cd glskeleton
uv sync
uv run python -m glskeleton

Alternatively, use the entry point defined in pyproject.toml:

uv run glskeleton

VS Code

A .vscode/launch.json is included for VS Code users:

  1. Open the project root in VS Code.
  2. Ctrl+Shift+P → "Python: Select Interpreter" → choose .venv/Scripts/python.exe (Windows) or .venv/bin/python (Linux/macOS).
  3. 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 executes python glskeleton/app.py directly and bypasses the debug configuration, which causes relative imports to fail with attempted relative import with no known parent package. If you prefer the ▶ button, open run.py in the project root instead.

Other IDEs

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

About

GL Skeleton is a 3D OpenGL application template based on PySide6 and PyOpenGL

Topics

Resources

Stars

10 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages