Compare commits
2
Commits
v1.2.2
..
a925bce314
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a925bce314 | ||
|
|
6bf73705c2 |
@@ -1,12 +1,12 @@
|
||||
pkgname=forge-steel
|
||||
pkgver=1.2.2
|
||||
pkgver=1.2.0
|
||||
pkgrel=1
|
||||
pkgdesc="Fusion Of Real Time Generative Effects"
|
||||
arch=('i686' 'pentium4' 'x86_64' 'arm' 'armv7h' 'armv6h' 'aarch64' 'riscv64')
|
||||
depends=('glfw>=1:3', 'v4l-utils>=1.32', 'alsa-lib>=1.2', 'libglvnd>=1.7')
|
||||
url="https://git.klemek.fr/klemek/forge-steel"
|
||||
source=("${pkgname}-steel-${pkgver}.tar.gz::https://git.klemek.fr/klemek/forge-steel/releases/download/v${pkgver}/${pkgname}-${pkgver}.tar.gz")
|
||||
sha256sums=('e1c7c7bb9a614609b3d7e8647511c23cbe7a7a3d715b0c236b627c4e2dcbf4dd')
|
||||
sha256sums=('b04e9159eb3eb809029bf02423e4bf844ecdb3b11cbcb49d8eed8f2505d32a1f')
|
||||
srcdir=build
|
||||
backup=("usr/share/${pkgname}")
|
||||
|
||||
|
||||
@@ -273,18 +273,6 @@ See the [printable version](./docs/forge_default_mapping.pdf).
|
||||
| <kbd>Ctrl</kbd> + <kbd>M</kbd> | Projection mapping 3 |
|
||||
| <kbd>Ctrl</kbd> + <kbd>Shift</kbd> + <kbd>M</kbd> | Projection mapping 4 |
|
||||
|
||||
### Projection Mappings
|
||||
|
||||
In any of the projection mapping mode, use the nanoKONTROL2 last 4 columns to control 4 on-screen points:
|
||||
|
||||
| Midi Control | Function |
|
||||
| ------ | -------- |
|
||||
| Fader N | point N - X position |
|
||||
| Knob N | point N - Y position |
|
||||
| Last column top button | activate projection mapping |
|
||||
| Last column middle button | invert projection mapping |
|
||||
| Last column bottom button | show projection borders |
|
||||
|
||||
## Making your own FORGE project
|
||||
|
||||
You want to embrace the "user" in "user-defined"? It's time to make your own project.
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
AC_INIT([forge], [steel-1.2.2], [klemek.dev@proton.me])
|
||||
AC_INIT([forge], [steel-1.2.0], [klemek.dev@proton.me])
|
||||
AM_INIT_AUTOMAKE
|
||||
AC_PROG_CC
|
||||
|
||||
|
||||
+12
-12
@@ -279,9 +279,9 @@ GROUP_3_2_Z=11089
|
||||
ARI_COUNT=62
|
||||
ARI_1=GROUP_3_1_Y
|
||||
ARI_2=GROUP_3_2_Z
|
||||
ARI_3=GROUP_2_5_4
|
||||
ARI_4=GROUP_2_5_4
|
||||
ARI_5=GROUP_2_5_4
|
||||
ARI_3=GROUP_2_1_X_4
|
||||
ARI_4=GROUP_2_1_Y_4
|
||||
ARI_5=GROUP_2_1_Z_4
|
||||
ARI_6=GROUP_2_2_X_4
|
||||
ARI_7=GROUP_2_2_Y_4
|
||||
ARI_8=GROUP_2_2_Z_4
|
||||
@@ -294,9 +294,9 @@ ARI_14=GROUP_2_6_Z_4
|
||||
ARI_15=GROUP_2_7_X_4
|
||||
ARI_16=GROUP_2_7_Y_4
|
||||
ARI_17=GROUP_2_7_Z_4
|
||||
ARI_18=GROUP_2_5_5
|
||||
ARI_19=GROUP_2_5_5
|
||||
ARI_20=GROUP_2_5_5
|
||||
ARI_18=GROUP_2_1_X_5
|
||||
ARI_19=GROUP_2_1_Y_5
|
||||
ARI_20=GROUP_2_1_Z_5
|
||||
ARI_21=GROUP_2_2_X_5
|
||||
ARI_22=GROUP_2_2_Y_5
|
||||
ARI_23=GROUP_2_2_Z_5
|
||||
@@ -309,9 +309,9 @@ ARI_29=GROUP_2_6_Z_5
|
||||
ARI_30=GROUP_2_7_X_5
|
||||
ARI_31=GROUP_2_7_Y_5
|
||||
ARI_32=GROUP_2_7_Z_5
|
||||
ARI_33=GROUP_2_5_6
|
||||
ARI_34=GROUP_2_5_6
|
||||
ARI_35=GROUP_2_5_6
|
||||
ARI_33=GROUP_2_1_X_6
|
||||
ARI_34=GROUP_2_1_Y_6
|
||||
ARI_35=GROUP_2_1_Z_6
|
||||
ARI_36=GROUP_2_2_X_6
|
||||
ARI_37=GROUP_2_2_Y_6
|
||||
ARI_38=GROUP_2_2_Z_6
|
||||
@@ -324,9 +324,9 @@ ARI_44=GROUP_2_6_Z_6
|
||||
ARI_45=GROUP_2_7_X_6
|
||||
ARI_46=GROUP_2_7_Y_6
|
||||
ARI_47=GROUP_2_7_Z_6
|
||||
ARI_48=GROUP_2_5_7
|
||||
ARI_49=GROUP_2_5_7
|
||||
ARI_50=GROUP_2_5_7
|
||||
ARI_48=GROUP_2_1_X_7
|
||||
ARI_49=GROUP_2_1_Y_7
|
||||
ARI_50=GROUP_2_1_Z_7
|
||||
ARI_51=GROUP_2_2_X_7
|
||||
ARI_52=GROUP_2_2_Y_7
|
||||
ARI_53=GROUP_2_2_Z_7
|
||||
|
||||
+7
-7
@@ -15,14 +15,14 @@ uniform vec3 iGroup2_6[7];
|
||||
uniform vec3 iGroup2_7[7];
|
||||
|
||||
void main() {
|
||||
bool visible = (iGroup2_4[4].x + iGroup2_5[4].x + iGroup2_6[4].x + iGroup2_7[4].x) > 0;
|
||||
bool invert = (iGroup2_4[4].y + iGroup2_5[4].y + iGroup2_6[4].y + iGroup2_7[4].y) > 0;
|
||||
float rect = clamp(iGroup2_4[4].z + iGroup2_5[4].z + iGroup2_6[4].z + iGroup2_7[4].z, 0, 1);
|
||||
bool visible = (iGroup2_4[0].x + iGroup2_5[0].x + iGroup2_6[0].x + iGroup2_7[0].x) > 0;
|
||||
bool invert = (iGroup2_4[0].y + iGroup2_5[0].y + iGroup2_6[0].y + iGroup2_7[0].y) > 0;
|
||||
float rect = clamp(iGroup2_4[0].z + iGroup2_5[0].z + iGroup2_6[0].z + iGroup2_7[0].z, 0, 1);
|
||||
bool modified = false;
|
||||
|
||||
vec2 uv = mix(vec2(0), vUV, base_mask(vUV));
|
||||
|
||||
if (iGroup2_4[4].x > 0) {
|
||||
if (iGroup2_4[0].x > 0) {
|
||||
vec2 p11 = vec2(iGroup2_4[6].xy);
|
||||
vec2 p12 = vec2(iGroup2_4[1].xy);
|
||||
vec2 p13 = vec2(iGroup2_4[3].xy);
|
||||
@@ -39,7 +39,7 @@ void main() {
|
||||
modified = true;
|
||||
}
|
||||
|
||||
if (iGroup2_5[4].x > 0) {
|
||||
if (iGroup2_5[0].x > 0) {
|
||||
vec2 p21 = vec2(iGroup2_5[6].xy);
|
||||
vec2 p22 = vec2(iGroup2_5[1].xy);
|
||||
vec2 p23 = vec2(iGroup2_5[3].xy);
|
||||
@@ -60,7 +60,7 @@ void main() {
|
||||
modified = true;
|
||||
}
|
||||
|
||||
if (iGroup2_6[4].x > 0) {
|
||||
if (iGroup2_6[0].x > 0) {
|
||||
vec2 p31 = vec2(iGroup2_6[6].xy);
|
||||
vec2 p32 = vec2(iGroup2_6[1].xy);
|
||||
vec2 p33 = vec2(iGroup2_6[3].xy);
|
||||
@@ -81,7 +81,7 @@ void main() {
|
||||
modified = true;
|
||||
}
|
||||
|
||||
if (iGroup2_7[4].x > 0) {
|
||||
if (iGroup2_7[0].x > 0) {
|
||||
vec2 p41 = vec2(iGroup2_7[6].xy);
|
||||
vec2 p42 = vec2(iGroup2_7[1].xy);
|
||||
vec2 p43 = vec2(iGroup2_7[3].xy);
|
||||
|
||||
+1
-20
@@ -7,8 +7,6 @@
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#include "constants.h"
|
||||
|
||||
#include "args.h"
|
||||
#include "config.h"
|
||||
#include "string.h"
|
||||
@@ -44,10 +42,6 @@ static void print_help(int status_code) {
|
||||
"[-mr / -nmr] "
|
||||
"[-tm] "
|
||||
"[-tf] "
|
||||
"[--x11] "
|
||||
"[--wayland] "
|
||||
"[--cocoa] "
|
||||
"[--win32] "
|
||||
"\n\n"
|
||||
"Fusion Of Real-time Generative Effects.\n\n"
|
||||
"options:\n"
|
||||
@@ -87,11 +81,7 @@ static void print_help(int status_code) {
|
||||
" -mr, --midi-reconnect auto-reconnect midi (default)\n"
|
||||
" -nmr, --no-midi-reconnect do not auto-reconnect midi\n"
|
||||
" -tm, --trace-midi print midi code and values\n"
|
||||
" -tf, --trace-fps print fps status of subsystems\n"
|
||||
" --x11 force X11 GLFW backend\n"
|
||||
" --wayland force Wayland GLFW backend\n"
|
||||
" --cocoa force Cocoa GLFW backend\n"
|
||||
" --win32 force Win32 GLFW backend\n");
|
||||
" -tf, --trace-fps print fps status of subsystems\n");
|
||||
exit(status_code);
|
||||
}
|
||||
|
||||
@@ -162,7 +152,6 @@ void args_parse(Parameters *params, int argc, char **argv) {
|
||||
params->midi_reconnect = true;
|
||||
params->trace_midi = false;
|
||||
params->trace_fps = false;
|
||||
params->glfw_backend = GLFW_BACKEND_ANY;
|
||||
|
||||
for (int i = 1; i < argc; i++) {
|
||||
arg = argv[i];
|
||||
@@ -231,14 +220,6 @@ void args_parse(Parameters *params, int argc, char **argv) {
|
||||
params->trace_midi = true;
|
||||
} else if (is_arg(arg, "-tf") || is_arg(arg, "--trace-fps")) {
|
||||
params->trace_fps = true;
|
||||
} else if (is_arg(arg, "--x11")) {
|
||||
params->glfw_backend = GLFW_BACKEND_X11;
|
||||
} else if (is_arg(arg, "--wayland")) {
|
||||
params->glfw_backend = GLFW_BACKEND_WAYLAND;
|
||||
} else if (is_arg(arg, "--cocoa")) {
|
||||
params->glfw_backend = GLFW_BACKEND_COCOA;
|
||||
} else if (is_arg(arg, "--win32")) {
|
||||
params->glfw_backend = GLFW_BACKEND_WIN32;
|
||||
} else {
|
||||
#ifdef VIDEO_IN
|
||||
if (is_arg(arg, "-vi") || is_arg(arg, "--video-in")) {
|
||||
|
||||
@@ -3,12 +3,6 @@
|
||||
#ifndef CONSTANTS_H
|
||||
#define CONSTANTS_H
|
||||
|
||||
static const unsigned int GLFW_BACKEND_ANY = 0;
|
||||
static const unsigned int GLFW_BACKEND_X11 = 1;
|
||||
static const unsigned int GLFW_BACKEND_WAYLAND = 2;
|
||||
static const unsigned int GLFW_BACKEND_COCOA = 3;
|
||||
static const unsigned int GLFW_BACKEND_WIN32 = 4;
|
||||
|
||||
static const char *vertex_shader_text =
|
||||
"#version 460\n"
|
||||
"const mat4 mvp = "
|
||||
|
||||
+1
-1
@@ -286,7 +286,7 @@ static bool init(const Parameters *params) {
|
||||
|
||||
start_state_background_write();
|
||||
|
||||
window_startup(error_callback, params->glfw_backend);
|
||||
window_startup(error_callback);
|
||||
|
||||
context.tex_resolution[0] = params->internal_size;
|
||||
context.tex_resolution[1] = params->internal_size;
|
||||
|
||||
@@ -58,7 +58,6 @@ typedef struct Parameters {
|
||||
bool midi_reconnect;
|
||||
bool trace_midi;
|
||||
bool trace_fps;
|
||||
unsigned int glfw_backend;
|
||||
} Parameters;
|
||||
|
||||
// file.c
|
||||
|
||||
+3
-31
@@ -5,12 +5,9 @@
|
||||
|
||||
#include "types.h"
|
||||
|
||||
#include "constants.h"
|
||||
|
||||
#include "window.h"
|
||||
|
||||
static void init_glfw(void (*error_callback)(int, const char *),
|
||||
const unsigned int backend) {
|
||||
static void init_glfw(void (*error_callback)(int, const char *)) {
|
||||
log_info("[GLFW] Initializing...");
|
||||
|
||||
// set errors handler
|
||||
@@ -19,28 +16,6 @@ static void init_glfw(void (*error_callback)(int, const char *),
|
||||
// print current GLFW version
|
||||
log_info("[GLFW] %s", glfwGetVersionString());
|
||||
|
||||
switch (backend) {
|
||||
case GLFW_BACKEND_X11:
|
||||
glfwInitHint(GLFW_PLATFORM, GLFW_PLATFORM_X11);
|
||||
log_info("[GLFW] platform: X11");
|
||||
break;
|
||||
case GLFW_BACKEND_WAYLAND:
|
||||
glfwInitHint(GLFW_PLATFORM, GLFW_PLATFORM_WAYLAND);
|
||||
log_info("[GLFW] platform: Wayland");
|
||||
break;
|
||||
case GLFW_BACKEND_COCOA:
|
||||
glfwInitHint(GLFW_PLATFORM, GLFW_PLATFORM_COCOA);
|
||||
log_info("[GLFW] platform: Cocoa");
|
||||
break;
|
||||
case GLFW_BACKEND_WIN32:
|
||||
glfwInitHint(GLFW_PLATFORM, GLFW_BACKEND_WIN32);
|
||||
log_info("[GLFW] platform: Win32");
|
||||
break;
|
||||
default:
|
||||
log_info("[GLFW] platform: Any");
|
||||
break;
|
||||
}
|
||||
|
||||
// init GLFW
|
||||
if (!glfwInit()) {
|
||||
log_error("[GLFW] Initialization failed");
|
||||
@@ -111,9 +86,8 @@ create_window(GLFWmonitor *monitor, const char *title, Window *shared_context,
|
||||
|
||||
static void use_window(GLFWwindow *window) { glfwMakeContextCurrent(window); }
|
||||
|
||||
void window_startup(void (*error_callback)(int, const char *),
|
||||
const unsigned int backend) {
|
||||
init_glfw(error_callback, backend);
|
||||
void window_startup(void (*error_callback)(int, const char *)) {
|
||||
init_glfw(error_callback);
|
||||
}
|
||||
|
||||
void window_terminate() {
|
||||
@@ -133,8 +107,6 @@ Window *window_init(const char *title, unsigned char monitor_index,
|
||||
|
||||
use_window(window);
|
||||
|
||||
glfwSwapInterval(0);
|
||||
|
||||
return window;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -3,7 +3,7 @@
|
||||
#ifndef WINDOW_H
|
||||
#define WINDOW_H
|
||||
|
||||
void window_startup(void (*error_callback)(int, const char *), const unsigned int backend);
|
||||
void window_startup(void (*error_callback)(int, const char *));
|
||||
|
||||
void window_terminate();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user