Skip to content
beatreichenbachPublic

About

Physically-Based Lens Flare Tool

Resources

Contributing

Stars

108 stars

Watchers

4 watching

Forks

Repository files navigation

Realflare

GitHub release Python License Ruff ty

Physically-based lens flare rendering using spectral raytracing on the GPU.

Screenshot

Installation

Install using uv:

git clone https://github.com/beatreichenbach/realflare.git
cd realflare
uv venv --python 3.13
uv pip install -e .

Or without:

git clone https://github.com/beatreichenbach/realflare.git
cd realflare
python -m venv venv
source venv/bin/activate  # or venv\Scripts\activate on Windows
pip install -e .

Requirements

  • Python 3.11–3.13 (OpenEXR ships no 3.14 wheels yet)
  • OpenGL 4.3+ (compute shaders required)
  • Discrete GPU recommended (NVIDIA/AMD with 4GB+ VRAM)
Platform Status Notes
Linux (Wayland) Partial Use egl backend and wayland Qt Platform
Linux (X11) Supported Use glx backend and xcb Qt Platform
Windows Supported Install GPU drivers
macOS Not supported Apple stopped at OpenGL 4.1

Wayland

If not automatically detected:

export QT_QPA_PLATFORM=wayland
export PYOPENGL_PLATFORM=egl

NVIDIA

Force to use the discrete NVIDIA GPU:

export __NV_PRIME_RENDER_OFFLOAD=1
export __GLX_VENDOR_LIBRARY_NAME=nvidia

Usage

# Launch the GUI
flare gui

# Render a project from CLI
flare render --project path/to/project.json

# Render with animation
flare render --project path/to/project.json --animation path/to/animation.json

Window

Nuke Plugin

A Nuke plugin is available for rendering lens flares from the Nuke gizmo. See plugins/nuke/README.md for installation and usage.

About this Repository

External Resources

References

Primary research this app is based on:

Additional interesting research:

Further references:

Contributing

See CONTRIBUTING.md for development setup, the project layout and the layering rules.

License

Copyright (c) 2026 Beat Reichenbach. This project is licensed under the GPLv3 License.

About

Physically-Based Lens Flare Tool

Resources

Contributing

Stars

108 stars

Watchers

4 watching

Forks

Releases

Used by

Contributors

Languages