https://github.com/karimnaaji/hdreffects
High dynamic range rendering, with lens flare approximation and bloom
https://github.com/karimnaaji/hdreffects
computer-graphics cpp glsl opengl shaders
Last synced: 7 months ago
JSON representation
High dynamic range rendering, with lens flare approximation and bloom
- Host: GitHub
- URL: https://github.com/karimnaaji/hdreffects
- Owner: karimnaaji
- License: mit
- Created: 2014-03-31T21:45:02.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2023-12-27T04:55:32.000Z (almost 2 years ago)
- Last Synced: 2025-03-23T01:12:06.159Z (7 months ago)
- Topics: computer-graphics, cpp, glsl, opengl, shaders
- Language: C++
- Homepage: http://karim.naaji.fr/high_dynamic_range_effects.html
- Size: 33.6 MB
- Stars: 76
- Watchers: 8
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
high dynamic range effects
==========================
dependencies
------------
This project uses cmake, glfw, and rgbe (library developed by Greg Ward), it has been developed using OpenGL 3.2 and GLSL 1.5.
#### mac osx
Download and install [CMake](http://www.cmake.org/cmake/resources/software.html)
if you don't already have it.
To simplify installation you may use [Homebrew](http://brew.sh):
```bash
brew install cmake
```
#### linux (ubuntu)
```bash
sudo apt-get install cmake
```
build and run
-------------
```bash
cd build
cmake .. && make
./hdr.out
```
usage
-----
While running, use the following keys to move around and modify render parameters:
* mouse : look around
* Z : move forward
* S : move backward
* D : move right
* Q : move left
* B : activate/desactivate bloom effect
* T : activate/desactivate tone mapping effect
* L : activate/desactivate lens flare effect
* R : activate/desactivate cubic lens distortion
* X : activate/desactivate noise added to the bloom effect
* N : increase bright threshold associated to both lens flare and bloom effect
* J : decrease bright threshold
* V : increase bloom factor
* G : decrease bloom factor
* C : increase the number of blur pass associated to the bloom effect
* F : decrease the number of blur pass associated to the bloom effect
results
-------
