Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,19 @@ New:
- A hidden layer, or an effect turned off, keeps a faint eye in the lists, to show where to click to turn it on again.
- Dose every effect with its setting Mix, from 0 % (the image as it is) to 100 % (the effect alone), on its page of the inspector, by OSC, MCP and links at `effect/<id>/mix`, and in the project.
- A shader file can show groups of its settings folded at first, with the key `GROUPS` of its header (see `docs/extensions/isf.md`).
- An effect can read its image with `IMG_NORM_PIXEL_SEAMLESS`, which leaves no grey seam where its position jumps from one place of the image to another, as between two tiles, on a generator or a source with an effect (see `docs/extensions/isf.md`).
- Color Adjustment sets the levels of the image, black point, white point, gamma, output black and output white, and the gain of red, green and blue, in two groups folded at first. A project saved before looks the same. The levels follow those of Romain Dura, and the gains RGB EQ by VIDVOX: `CREDITS.md`, in the folder `shaders`, gives their licences.
- Add the effect Invert: the negative of the image, or only its light and dark while the colours stay, or only what is above a threshold, as a solarized photograph; each of red, green and blue can be left as it is.
- Add the effect Colorize: two colours, one for the dark and one for the light, and the shades between, from the luminance, the strongest channel or the mean of the channels.
- Add the effect Threshold: two colours, for what is darker and what is lighter than a threshold, with a soft edge if wanted; either side can be made transparent, to cut out the image.
- Add the effect Posterize: a few levels of each colour, in flat bands, with soft edges or a dithering pattern if wanted, or only the brightness in levels.
- Add the effect Luma Key: the dark parts of the image become transparent, or the light ones, fading between a low and a high threshold, to show what is behind; on a source, every shape that uses it.
- Add the effect Kaleidoscope: a slice of the image repeated around a centre, each copy beside its mirror image, from 2 to 32 copies; the slice taken, the whole and the zoom can be turned or changed. On a layer, it uses only the part of the image the layer shows. It starts from Kaleidoscope of VIDVOX (MIT License).
- Add the effect Mirror: one half of the image kept and its mirror image in place of the other, left and right, top and bottom, or both, each from either side, with four switches that a key or a pad can turn on and off; the mirrors can be moved and turned. It starts from Mirror of VIDVOX (MIT License).
- Add the effect Transform: the image moved, scaled and turned, and in a group folded at first, tiled in columns and rows, every other tile in a mirror, rows slid as bricks or slanted, without a seam between the tiles; another folded group stretches the image, sets the point it turns around and what shows beyond its edges. As it is added, it changes nothing. On a layer, it uses only the part of the image the layer shows. It starts from Zoom, Rotate and Quad Tile of VIDVOX (MIT License).
- Add the effect Pixelate: the image in blocks of one colour, 32 across its width at first, a number that a single slider changes; in a group folded at first, round blocks or diamonds, wide or tall blocks, and a gap between them, of a colour that can be transparent. On a layer, it uses only the part of the image the layer shows. It starts from Pixellate of VIDVOX (MIT License).
- Add the effect RGB Shift: the red, the green and the blue of the image moved apart, leaving coloured fringes along its edges, by 1 % of its height at first; the slider goes to 5 %, and a typed value, OSC or MCP to 50 %. The colours move along an angle or away from the centre, as through a lens; in a group folded at first, each moves by its own share of the distance, either way. On a layer, it uses only the part of the image the layer shows. It starts from Chromatic Aberration of VIDVOX (MIT License).
- Add the effect Edges: white lines on black where the brightness of the image changes, about 3 pixels thick on an image of 1080 lines, with a strength; in a group folded at first, the thickness, a threshold that hides the grain of a video, the colour of the lines or the colours of the image, and black, the image or nothing between them. On a layer, it uses only the part of the image the layer shows. It starts from Edges of VIDVOX (MIT License).
- The menu Add Effect shows the effects by family, Color and Keying for now, from the first of the `CATEGORIES` of their file; `list_effect_types` of MCP gives the category of each (`category`).
- Control every setting of a source or a layer by OSC at an address that follows its path: `/mapmap/layer/<id>/<path>`, for example `/mapmap/layer/3/output/vertices/5`. The new MCP tool `list_settings` gives the settings of a source or a layer with their type, bounds and options, and `set_property` takes a path.
- Show the output in an ordinary window, to work without a projector or keep an eye on the output: View > Output > Output in a Window (Ctrl+Shift+F), which can be moved and resized; the image keeps its proportions. Output Fills a Screen (Ctrl+F) covers exactly the chosen screen with a window without a frame. On macOS, it is no longer the full screen of the system: no animation, no desktop of its own, and the window covers the menu bar and the Dock. Ctrl+F and Escape go back to the window or to hidden; Escape does not close the window. The output button of the toolbar has a menu with the same commands and the list of screens, which replaces View > Output screen (#209).
Expand Down
21 changes: 20 additions & 1 deletion docs/extensions/isf.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ MapMap reads the files `*.fs` of the folder `shaders` installed with it, once, a

A file missing from the folder is read from the copy built into MapMap. Editing a file, a default value for instance, changes the generator at the next start. On macOS, editing a file inside the application breaks its signature: keep a copy of the original.

Each shader becomes a generator in File > Add Generator, named after its file: `color-wheel.fs` gives "Color Wheel". Its identifier is `mapmap.shaders:` followed by the file name, as in `mapmap.shaders:checker.fs`. The prefix `mapmap.` is reserved for what is shipped with MapMap. A project writes the identifier as the type of the source, with `shader_hash`, a hash of the file; opening a project saved with another version of the file writes a warning in the log. A project that names a shader MapMap does not have keeps the source as it is, with a "missing" image, and saves it unchanged.
Each shader becomes a generator in File > Add Generator, named after its file: `color-wheel.fs` gives "Color Wheel", and the names of colour models are written in capitals: `rgb-shift.fs` gives "RGB Shift". Its identifier is `mapmap.shaders:` followed by the file name, as in `mapmap.shaders:checker.fs`. The prefix `mapmap.` is reserved for what is shipped with MapMap. A project writes the identifier as the type of the source, with `shader_hash`, a hash of the file; opening a project saved with another version of the file writes a warning in the log. A project that names a shader MapMap does not have keeps the source as it is, with a "missing" image, and saves it unchanged.

A file that MapMap cannot read is refused with a message in the log (Window > Console) and does not affect the other files.

Expand Down Expand Up @@ -68,6 +68,12 @@ What is refused, with a message in the log:
| Threshold | Two colours, for what is darker and what is lighter than a threshold, either of which may be transparent; a soft edge; the luminance, one channel or the strongest compared | Written for MapMap |
| Posterize | A few levels of each colour, in flat bands; soft edges between them; a dithering pattern that suggests the shades between; or only the brightness in levels | Posterize by VIDVOX, Luminance Posterize by zoidberg (MIT License) |
| Luma Key | The dark parts made transparent, or the light ones, fading between two thresholds; the luminance, one channel or the strongest compared. On a source, the shapes that use it are see-through there | Written for MapMap |
| Kaleidoscope | A slice of the image repeated around a centre, each copy beside its mirror image; the slice taken and the whole can be turned, and zoomed. Beyond the edges, the image is read again in a mirror. On a layer, only the part the layer shows is used | Kaleidoscope by VIDVOX (MIT License) |
| Mirror | One half of the image kept and its mirror image in place of the other: left and right, top and bottom, or both, each from either side; the mirrors moved or turned. Beyond the edges, the image is read again in a mirror | Mirror by VIDVOX (MIT License) |
| Transform | The image moved, scaled, turned and stretched around a pivot, and tiled in columns and rows, every other tile in a mirror if wanted, rows slid as bricks or slanted. Beyond the edges, nothing, the edge pixels, the image repeated or the image in a mirror. On a layer, only the part the layer shows is used. It reads with `IMG_NORM_PIXEL_SEAMLESS` | Zoom, Rotate and Quad Tile by VIDVOX (MIT License) |
| Pixelate | The image in blocks of one colour, counted across its width, each showing the colour at its centre: square, round or diamonds, wide or tall, with a gap of a colour, transparent if wanted, between them. The rows that do not fit are cut equally at the top and the bottom. On a layer, only the part the layer shows is used. It reads with `IMG_NORM_PIXEL_SEAMLESS` | Pixellate by VIDVOX (MIT License) |
| RGB Shift | The red, the green and the blue of the image moved apart, along an angle or away from the centre, each by its own share of the distance, which is a share of the height of the image. Beyond the edges, a colour moved in from outside is missing. On a layer, only the part the layer shows is used | Chromatic Aberration by VIDVOX (MIT License) |
| Edges | Lines where the brightness of the image changes, found with the Sobel filter from eight reads, nine when the line or the background shows the image: a strength, a thickness as a share of the height of the image, a threshold against the grain of a video, lines of a colour or of the colours of the image, on black, on the image or on nothing. The edges of the image draw no line. On a layer, only the part the layer shows is used | Edges by VIDVOX (MIT License) |

The files of VIDVOX and of zoidberg come from the collection ISF-Files of VIDVOX (github.com/Vidvox/ISF-Files). `CREDITS.md`, in the folder `shaders`, gives the licences.

Expand All @@ -93,6 +99,19 @@ A group is shown unfolded. The key `GROUPS` of the header, which MadMapper does
"GROUPS": [ { "LABEL": "Levels", "COLLAPSED": true } ]
```

### Reading without seams, MapMap's own

The graphics card keeps smaller, smoothed copies of some images, the generators and the images of the sources that have an effect, and reads the one that the size of the pixels drawn calls for, so that a shrunk image does not shimmer. It measures that size by how far the position read moves from one pixel to its neighbour. An effect whose position jumps from one place of the image to another between two neighbouring pixels, as between two tiles, misleads it: at the jump, it reads the smallest copy, and a grey, half transparent seam shows.

`IMG_NORM_PIXEL_SEAMLESS(image, normCoord, smoothCoord)` reads the image at `normCoord`, as `IMG_NORM_PIXEL`, but chooses the copy as if reading at `smoothCoord`: the same position without its jumps, which moves at the same pace. For tiles, it is the position before each tile is brought back between 0 and 1:

```glsl
vec2 grid = isf_FragNormCoord * vec2(3.0, 2.0);
gl_FragColor = IMG_NORM_PIXEL_SEAMLESS(inputImage, fract(grid), grid);
```

Read close to the edges of the image, where the image is shrunk, a smoothed copy also takes in what is beyond them: keep the position from the edges by as many pixels as the image is shrunk. While an effect reads this way, its image is read without anisotropic filtering, which keeps lines sharp in shapes seen in perspective, but would leave a seam: it reads several points spread along the jump. The images without smaller copies, such as videos, have no seam to fear. Other ISF software does not know this function: an effect that uses it is for MapMap only.

### How a setting is shown, MapMap's own

| Key | Meaning |
Expand Down
6 changes: 6 additions & 0 deletions resources/shaders.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,11 @@
<file alias="threshold.fs">shaders/threshold.fs</file>
<file alias="posterize.fs">shaders/posterize.fs</file>
<file alias="luma-key.fs">shaders/luma-key.fs</file>
<file alias="kaleidoscope.fs">shaders/kaleidoscope.fs</file>
<file alias="mirror.fs">shaders/mirror.fs</file>
<file alias="transform.fs">shaders/transform.fs</file>
<file alias="pixelate.fs">shaders/pixelate.fs</file>
<file alias="rgb-shift.fs">shaders/rgb-shift.fs</file>
<file alias="edges.fs">shaders/edges.fs</file>
</qresource>
</RCC>
6 changes: 6 additions & 0 deletions resources/shaders/CREDITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ The shaders of this folder are part of MapMap, under the GNU General Public Lice
| `invert.fs` | Channels: RGB Invert by VIDVOX (ISF-Files, MIT License). |
| `colorize.fs` | False Color by zoidberg (ISF-Files, MIT License). |
| `posterize.fs` | Posterize by VIDVOX and Luminance Posterize by zoidberg (ISF-Files, MIT License), with the conversions between RGB and HSV of Sam Hocevar that the latter gives. |
| `kaleidoscope.fs` | Kaleidoscope by VIDVOX (ISF-Files, MIT License). |
| `mirror.fs` | Mirror by VIDVOX (ISF-Files, MIT License). |
| `transform.fs` | Zoom, Rotate and Quad Tile by VIDVOX (ISF-Files, MIT License). |
| `pixelate.fs` | Pixellate by VIDVOX (ISF-Files, MIT License). |
| `rgb-shift.fs` | Chromatic Aberration by VIDVOX (ISF-Files, MIT License). |
| `edges.fs` | Edges by VIDVOX (ISF-Files, MIT License). |
| `gradient.fs` | Linear Gradient and Radial Gradient by Carter Rosenberg (ISF-Files, MIT License). Blend: the OKLab colour space of Björn Ottosson (MIT License). |
| `stripes.fs` | Stripes by VIDVOX (ISF-Files, MIT License). Blend: the OKLab colour space of Björn Ottosson (MIT License). |
| `waves.fs` | Blend: the OKLab colour space of Björn Ottosson (MIT License). |
Expand Down
Loading
Loading