# Generating Digital Painting Lighting Effects

Lighting plays an important role in digital and matte painting. Unlike physical illumination in the real world or rendered scenes, the painted lighting effects in digital paintings are created by artists using heterogeneous strokes. In the paper titled "[Generating Digital Painting Lighting Effects via RGB-space Geometry](https://lllyasviel.github.io/PaintingLight/)" the authors propose an image processing algorithm to generate digital painting lighting effects from a **single image**. The algorithm is based on the key observation that: **artists use many overlapping strokes to paint lighting effects**, i.e., pixels with dense stroke history tend to gather more illumination strokes. Based on this observation they devised an algorithm that can:

* Estimate the stroke density of the input image based on that image itself using color geometry.
* Generate visually realistic lighting effects by mimicking artists’ coarse-to-fine workflow.

## 🤩 Check out the report [here](https://app.wandb.ai/ayush-thakur/paintlight/reports/Generating-Digital-Painting-Lighting-Effects-via-RGB-space-Geometry--VmlldzoxMTA2Mjg). <a href="#check-out-the-report-here" id="check-out-the-report-here"></a>

## ​🙈 Check out the forked GitHub repo [here](https://github.com/ayulockin/PaintingLight). <a href="#check-out-the-forked-github-repo-here" id="check-out-the-forked-github-repo-here"></a>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ayushthakur.gitbook.io/ayush-thakur/authoring/untitled.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
