Skip to content
Merged
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
9 changes: 7 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,13 @@

New:

- Add generators, sources drawn by the graphics card: Checker, Grid, Color Wheel and Color, in File > Add Generator or with the generator button of the toolbar, which replaces the color button. Each has its own settings. Its image is square: its resolution is chosen among presets, from 256 × 256 to 4096 × 4096, or typed; a graphics card that cannot draw that large draws the largest it can. The image is drawn once per frame, whatever the number of views that show it.
- Color Wheel draws colour wheels, spirals, concentric rings and polar checkerboards, straight or twisted, over its whole image, from one set of settings, without modes: segments around the circle, rings along the radius, a twist that winds the segments into spirals, a smoothness, a palette chosen among presets, a hue shift, radial saturation and lightness, a rotation in revolutions per minute that never jumps when its speed changes, and a flow that moves the rings away from the centre or towards it, in radii per minute, at the same speed whatever their number. Presets set the geometry.
- Add generators, sources drawn by the graphics card: Checker, Grid and Color, to fit shapes to surfaces, then Color Wheel, in File > Add Generator or with the generator button of the toolbar, which replaces the color button. Each has its own settings. Its image is square: its resolution is chosen among presets, from 256 × 256 to 4096 × 4096, or typed; a graphics card that cannot draw that large draws the largest it can. The image is drawn once per frame, whatever the number of views that show it.
- Color Wheel draws colour wheels, spirals, concentric rings and polar checkerboards, straight or twisted, over its whole image, from one set of settings, without modes: segments around the circle, rings along the radius, a twist that winds the segments into spirals, a smoothness, a palette chosen among presets, a hue shift, radial saturation and lightness, a rotation in revolutions per minute that never jumps when its speed changes, and a flow that moves the rings away from the centre or towards it, in radii per minute, at the same speed whatever their number. Presets set the geometry. The radial colour and the animation are folded at first.
- Gradient, a generator of two or three colours, linear, radial, conic or in a diamond, repeated and mirrored, from smooth to sharp bands, with a centre and an angle. It moves along its shape as soon as it is added, at a speed in repeats per minute that never jumps when it changes. A slight dithering hides the steps between colours on a large projection. Its linear and radial forms start from the ISF files of Carter Rosenberg (MIT License), credited in `resources/shaders/CREDITS.md`.
- Stripes, a generator of stripes of two colours: how many pairs cross the image, their angle, the share of each colour and the softness of their edges in pixels. They go by as soon as they are added, at a speed in pairs per minute. It starts from Stripes of VIDVOX (MIT License).
- Waves, a generator of waves of two colours, in straight lines at an angle or in rings around a centre, from a soft sine to sharp bands. They go forward as soon as they are added, at a speed in waves per minute; rings go away from the centre, or towards it in reverse.
- Noise, a generator of noise between two colours: smooth clouds, cells around points that wander, or a plasma, with a scale, a number of layers of detail and a seed that changes the pattern. It moves as soon as it is added and comes back to where it started a given number of times per minute, without ever sliding or jumping. Smooth and Cells start from the ISF files of VIDVOX and the simplex noise of Ashima Arts and Stefan Gustavson (MIT License).
- Gradient, Stripes, Waves and Noise blend their colours as Blend says: in a straight line (RGB), through the hues the shorter way round the colour wheel (Hue), or the longer way round (Rainbow), which goes through all the hues when both colours have the same. The hues go through OKLab, the colour space of Björn Ottosson (MIT License), so that the lightness stays even.
- A color is now a generator: its layers have an input shape, like those of an image, and its image is 256 × 256 by default. Projects with the color sources of earlier versions open with color generators and look the same: the alpha of their color, which was not drawn, is dropped. The MCP tool `create_color_source` creates a color generator.
- Checker, Grid and Color Wheel are shader files in the ISF format, shipped in the folder `shaders` of MapMap: editing one changes the generator at the next start. MapMap reads ISF generators of one pass, adds a few keys of its own and of MadMapper to say how their settings are shown, and the time bases and animators of MadMapper to keep their animations from jumping, and lists each shipped shader in File > Add Generator. Projects with the generators of earlier versions open as before. See `docs/extensions/isf.md`.
- A source that this version cannot open, such as a Syphon source on GNU/Linux or Windows, is kept with its layers: it shows a "missing" image and is saved as it was read, so that it comes back on a computer that can open it.
Expand Down
4 changes: 2 additions & 2 deletions docs/extensions/isf.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ISF shaders in MapMap

MapMap draws generators and effects from fragment shaders written in the [ISF format](https://isf.video) (Interactive Shader Format): a JSON header in the first comment of the file, which describes the inputs of the shader, then GLSL code. Checker, Grid and Color Wheel are such generators, shipped with MapMap, and so are the effects listed below. A shipped shader that takes code from other free software names it in its `CREDIT`, and `CREDITS.md`, in the folder `shaders`, gives the licences.
MapMap draws generators and effects from fragment shaders written in the [ISF format](https://isf.video) (Interactive Shader Format): a JSON header in the first comment of the file, which describes the inputs of the shader, then GLSL code. Checker, Grid, Color Wheel, Gradient, Stripes, Waves and Noise are such generators, shipped with MapMap, and so are the effects listed below. A shipped shader that takes code from other free software names it in its `CREDIT`, and `CREDITS.md`, in the folder `shaders`, gives the licences.

## Where the shipped shaders are

Expand Down Expand Up @@ -98,7 +98,7 @@ A group is shown unfolded. The key `GROUPS` of the header, which MadMapper does
| Key | Meaning |
|---|---|
| `DESCRIPTION` | One sentence saying what the setting does, shown in its tooltip. |
| `UNIT` | `percent` (a value from 0 to 1, shown from 0 to 100), `degrees`, `hertz`, `seconds`, `pixels` or `rpm` (revolutions per minute). |
| `UNIT` | `percent` (a value from 0 to 1, shown from 0 to 100), `degrees`, `hertz`, `seconds`, `pixels`, `rpm` (revolutions per minute) or `per_minute` (shown "/min": how many times something that does not turn, such as a stripe going by, repeats in a minute). |
| `STEP` | The increment of the slider and of the arrow keys. |
| `SLIDER_MIN`, `SLIDER_MAX` | The ends of the slider, when they differ from `MIN` and `MAX`. Without `MAX`, larger values can be typed. |

Expand Down
4 changes: 4 additions & 0 deletions resources/shaders.qrc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
<file alias="checker.fs">shaders/checker.fs</file>
<file alias="grid.fs">shaders/grid.fs</file>
<file alias="color-wheel.fs">shaders/color-wheel.fs</file>
<file alias="gradient.fs">shaders/gradient.fs</file>
<file alias="stripes.fs">shaders/stripes.fs</file>
<file alias="waves.fs">shaders/waves.fs</file>
<file alias="noise.fs">shaders/noise.fs</file>
<file alias="color-adjustment.fs">shaders/color-adjustment.fs</file>
<file alias="invert.fs">shaders/invert.fs</file>
<file alias="colorize.fs">shaders/colorize.fs</file>
Expand Down
57 changes: 57 additions & 0 deletions resources/shaders/CREDITS.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ 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. |
| `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). |
| `noise.fs` | Smooth: Simplex Noise by VIDVOX (ISF-Files, MIT License), with the simplex noise of Ashima Arts and Stefan Gustavson (webgl-noise, MIT License). Cells: Worley Cells by VIDVOX (ISF-Files, MIT License). Blend: the OKLab colour space of Björn Ottosson (MIT License). |

## Romain Dura, ISC License

Expand Down Expand Up @@ -54,3 +58,56 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```

## Ashima Arts and Stefan Gustavson, webgl-noise, MIT License

From github.com/ashima/webgl-noise.

```
Copyright (C) 2011 by Ashima Arts (Simplex noise)
Copyright (C) 2011-2016 by Stefan Gustavson (Classic noise and others)

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
```

## Björn Ottosson, OKLab, MIT License

From bottosson.github.io/posts/oklab: the matrices that turn linear sRGB into OKLab and back.

```
Copyright (c) 2021 Björn Ottosson

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies
of the Software, and to permit persons to whom the Software is furnished to do
so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```
5 changes: 5 additions & 0 deletions resources/shaders/color-wheel.fs
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@
"MAX": 120.0,
"DEFAULT": 5.0,
"STEP": 0.1,
"UNIT": "per_minute",
"DESCRIPTION": "How fast the rings move away from the centre, in radii per minute, whatever their number: at 6, a ring goes from the centre to the edge in 10 seconds; 0 keeps them still."
},
{
Expand All @@ -150,6 +151,10 @@
"TYPE": "animator",
"PARAMS": { "shape": "In", "bpm": "flow", "reverse": "flow_inward" }
}
],
"GROUPS": [
{ "LABEL": "Radial Color", "COLLAPSED": true },
{ "LABEL": "Animation", "COLLAPSED": true }
]
}*/

Expand Down
Loading
Loading