[![CI](https://github.com/klemek/forge-steel/actions/workflows/ci.yml/badge.svg)](https://github.com/klemek/forge-steel/actions/workflows/ci.yml) # F.O.R.G.E. (Steel) > **F**usion **O**f **R**eal-time **G**enerative **E**ffects *Steel version (PC executable)* Discover an engine where user-defined fragment shaders collide to produce stunning visuals. ![](./images/preview.png) See [Demo #1 - 1H](https://youtu.be/HgErrasSs-w) and [Demo #2 - Monitor View](https://youtu.be/RW9Pno7YAzg) on YouTube b ## Table of Contents - [What is FORGE ?](#what-is-forge-) - [Install](#install) - [Prerequisites](#prerequisites) - [From release](#from-release) - [From repository (PKGBUILD)](#from-repository-pkgbuild) - [From repository (dev version)](#from-repository-dev-version) - [Usage](#usage) - [Runtime keybindings](#runtime-keybindings) - [CLI arguments](#cli-arguments) - [Default Project](#default-project) - [Sources and Effects](#sources-and-effects) - [Debug View](#debug-view) - [NanoKontrol2 Controller mapping](#nanokontrol2-controller-mapping) - [Making your own FORGE project](#making-your-own-forge-project) - [`forge_project.cfg`](#forge_projectcfg) - [Working with `frag0.glsl`](#working-with-frag0glsl) - [Frequently Asked Questions](#frequently-asked-questions) - [Why "steel"?](#why-steel) - [How do I report a bug?](#how-do-i-report-a-bug) - [Help I got low FPS on my video device](#help-i-got-low-fps-on-my-video-device) ## What is FORGE ? ![](images/forge.drawio.png) TODO ## Install ### Prerequisites | library | apt | pacman | | --------- | -------------- | --------------- | | libglfw | libglfw3-dev | extra/glfw | | libGL | libgl-dev | extra/libglvnd | | libasound | libasound2-dev | extra/alsa-lib | | libv4l2 | libv4l-dev | extra/v4l-utils | ### From release See [Releases](https://github.com/klemek/forge-steel/releases) ```shell tar xvzf forge-steel-x.y.z.tar.gz cd forge-steel-x.y.z ./configure make make install ``` ### From repository (PKGBUILD) ```shell git clone --recursive https://github.com/klemek/forge-steel cd forge makepkg -si ``` ### From repository (dev version) ```shell git clone --recursive https://github.com/klemek/forge-steel cd forge aclocal autoconf automake --add-missing ./configure make make install ``` ## Usage ### Runtime keybindings When running, the following keybindings are available: * Esc: Exit window * R: Randomize shader state * D: Demo mode On/Off ### CLI arguments ```txt usage: forge [-h] [-v] [-hr] [-s=SCREEN] [-m=SCREEN] [-mo] [-p=PROJECT_PATH] [-c=CFG_FILE] [-sf=STATE_PATH] [-ls / -nls] [-ss / -nss] [-is=SIZE] [-v=FILE] [-vs=SIZE] [-t=TEMPO] [-d] [-w] [-tm] [-tf] Fusion Of Real-time Generative Effects. options: -h, --help show this help message and exit -v, --version print version -hr, --hot-reload hot reload of shaders scripts -s, --screen output screen number (default: primary) -m, --monitor monitor screen number (default: none) -mo, --monitor-only no output screen -p, --project forge project directory (default: /usr/share/forge/default) -c, --config config file name (default: forge_project.cfg) -sf, --state-file saved state file (default: forge_saved_state.txt) -ls, --load-state load saved state (default) -nls, --no-load-state do not load saved state -ss, --save-state save state (default) -nss, --no-save-state do not save state -is, --internal-size internal texture height (default: 720) -v, --video-in path to video capture device (multiple allowed) -vs, --video-size video capture desired height (default: internal texture height) -t, --tempo base tempo (default: 60) -d, --demo demonstration mode (assume --no-save-state and --no-load-state) -w, --windowed not fullscreen -tm, --trace-midi print midi code and values -tf, --trace-fps print fps status of subsystems ``` ## Default Project > A.K.A Kleπek's shaders ### Sources and Effects | P | # | SRC | _COL2_ | _COL3_ | _COL4_ | FX | _COL6_ | _COL7_ | _COL8_ | | ----- | ----- | ----------------- | ----------------- | --------------- | ------------------ | ---------------- | --------------- | ------------- | -------------- | | **1** | **0** | Feedback + Thru | _Hue_ | _Saturation_ | _Light_ | Thru | _Hue_ | _Saturation_ | \_Light | | | **1** | Lines | _Thick. / Dezoom_ | _Rotation_ | _Distortion_ | Feedback + Shift | _Zoom / Dezoom_ | _X Shift_ | _Y Shift_ | | | **2** | Dots | _Zoom_ | _Rotation_ | _Lens_ | Shift | _Zoom / Dezoom_ | _X Shift_ | _Y Shift_ | | | **3** | Waves | _Spacing_ | _Thickness_ | _Vert. Scroll (R)_ | Colorize | _Black Color_ | _White Color_ | _Shift_ | | | **4** | Noise | _Zoom_ | _Voronoi dist._ | _Details_ | Quantize | _Pixel Size_ | _Bit Depth_ | _Blur_ | | **2** | **5** | Video In 1 + Thru | _Hue_ | _Saturation_ | _Light_ | Dithering | _Pixel Size_ | _Bit Depth_ | _Blur_ | | | **6** | CP437 | _Zoom_ | _Charset_ | _Char. Delta_ | TV | _Lens_ | _Horz. Noise_ | _Dezoom_ | | | **7** | Sentences | _Zoom_ | _Sentence_ | _Vertical repeat_ | Kaleidoscope | _Axes_ | _Rotation_ | _Horz. Scroll_ | | | **8** | | | | | CP437 | _Zoom_ | _Charset_ | _Char. Delta_ | | | **9** | | | | | Lens | _Lens limit_ | _Lens power_ | _Pre Zoom_ | | **3** | **A** | Video In 2 + Thru | _Hue_ | _Saturation_ | _Light_ | | | | | | | **B** | | | | | | | | | | | **C** | | | | | | | | | | | **D** | | | | | | | | | | | **E** | Debug | --- | --- | --- | | | | | TODO update ### Debug View ![](./images/debug.jpg) ### NanoKontrol2 Controller mapping ![](./images/nanokontrol.jpg) > In blue is a sample "stage" as most sources/effects use a combination of 4 stages (see table above) > ⚠️ you'll need to change your NanoKontrol2 settings to remove the "toggle" behavior of the buttons and use "external" led control ## Making your own FORGE project TODO ### `forge_project.cfg` TODO ### Working with `frag0.glsl` TODO ## Frequently Asked Questions ### Why "steel"? FORGE is a concept which is intended to be derived onto other forms (like Raspberry PI). In order to differentiate between them each would be name after a different alloy. FORGE (steel) describe the linux version. ### How do I report a bug? TODO ### Help I got low FPS on my video device TODO