# Matchbox Shaders No One Asked For

**URL:** <https://forum.logik.tv/t/matchbox-shaders-no-one-asked-for/6876>\
**Category:** Matchbox\
**Created:** [October 4, 2022, 7:39am UTC](https://forum.logik.tv/t/matchbox-shaders-no-one-asked-for/6876 "2022-10-04T07:39:04Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![KuleshovEffect](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/kuleshoveffect/32/4928_2.png) [@KuleshovEffect](https://forum.logik.tv/u/KuleshovEffect)\
**Post date:** [October 4, 2022, 7:39am UTC](https://forum.logik.tv/t/matchbox-shaders-no-one-asked-for/6876/1 "2022-10-04T07:39:04Z")

</div>

Yeah Nuke’s Curvetool would be cool to have in Flame, but how about another ASCII shader instead??

Here are five shaders I shamelessly stole from Shadertoy:

KE\_Ascii  
 ![Ascii](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/7/7fea7c26eeecca860a99bb2c5c407743ba536233.gif)

KE\_Extruder  
 ![Extrude](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/0/0fe38104100e6d111d0291de3be12547f66190a9.gif)

KE\_LineDrawing  
 ![Line](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/e/e2015f67e430378da4137984e44f2ec4840b6f61.gif)

KE\_PredatorCamo  
 ![Pred](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/e/ead7d860afde8484757a03fafbddb088917958f0.gif)

KE\_VCR  
 ![VCR](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/e/e0535d9ccc8ba357124063b2f74cdaea1f062f36.gif)

Add these files to your **shaders** directory!  
[KE\_Ascii.zip](https://forum.logik.tv/uploads/short-url/zff4D7CDl4eQgQOaL8SWKxCaNfB.zip) (51.9 KB)  
[KE\_Extruder.zip](https://forum.logik.tv/uploads/short-url/sVpdnuBMbiWVBvZ7xdyks9RI5sM.zip) (133.3 KB)  
[KE\_LineDrawing.zip](https://forum.logik.tv/uploads/short-url/9nWSB8IVijh37lYETGekN9O8rV8.zip) (132.1 KB)  
[KE\_PredCamo.zip](https://forum.logik.tv/uploads/short-url/p7r07KjzecFhRYtUJtM1c6mGCVf.zip) (41.9 KB)  
[KE\_VCR.zip](https://forum.logik.tv/uploads/short-url/q7NFEmCF5CUDSzC1FjgxycsyUjp.zip) (113.3 KB)

These are pretty easy to port, but their usefulness is perhaps limited at best.  
If you’re looking for something more world-changing, like Timewarp ML, maybe have a look here:

> **[Papers with Code - Computer Vision](https://paperswithcode.com/area/computer-vision)**
>
> Browse 1135 tasks • 2421 datasets • 3547

These aren’t shaders; they’re research in video manipulation.  
As the site’s name suggests, most of these projects come with code - usually it’s Python.  
Making these tools work with Flame would be substantially more work, but perhaps far more useful.  
Let me know if you see anything that piques your interest; I have a couple I’d like to try.  
Or if you happen across any other repositories of open source glsl or python code, I’d like to hear about them.

-Ted

---

<div class="post-metadata">

**Author:** ![lewis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/lewis/32/220_2.png) [@lewis](https://forum.logik.tv/u/lewis)\
**Post date:** [October 4, 2022, 2:15pm UTC](https://forum.logik.tv/t/matchbox-shaders-no-one-asked-for/6876/2 "2022-10-04T14:15:16Z")

</div>

These are cool! The one that’s Linux only, I wonder if it’s easy to fix it for Mac… it might just be a matter of sticking `#version 120` at the top and changing that one `texture()` call into a `texture2D()` 🤔 Unless it’s a visual difference in which case it might be a very tedious process of swapping out all the noise functions and checking every `pow()` argument 😩

---

<div class="post-metadata">

**Author:** ![hildebrandtbernd](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/hildebrandtbernd/32/3038_2.png) [@hildebrandtbernd](https://forum.logik.tv/u/hildebrandtbernd)\
**Post date:** [October 4, 2022, 4:49pm UTC](https://forum.logik.tv/t/matchbox-shaders-no-one-asked-for/6876/3 "2022-10-04T16:49:54Z")

</div>

Loving the PredCamo and how it has better results than the distortion shaders, will def. be useful in future

---

<div class="post-metadata">

**Author:** ![KuleshovEffect](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/kuleshoveffect/32/4928_2.png) [@KuleshovEffect](https://forum.logik.tv/u/KuleshovEffect)\
**Post date:** [October 5, 2022, 1:48am UTC](https://forum.logik.tv/t/matchbox-shaders-no-one-asked-for/6876/4 "2022-10-05T01:48:08Z")

</div>

Thanks!!

As you know, debugging on Mac is tricky due to the total lack of compiler errors, so I’m more prone to just giving up 😵‍💫

I am able to get some useful info out of Visual Studio Code. On line 165 glslCanvas gives the error:  
`array constructor supported in GLSL ES 3.00 and above only`

I recalled that Flame supports different versions of GLSL on Mac and Linux (120 vs 130) so I didn’t bother troubleshooting further previously.

At your suggestion I tried adding various `#version` numbers at the top.  
Specifying `300 es` made that error go away, but caused a host of other issues.  
Maybe it has more to do with the graphics card than the OS.

-Ted

---

<div class="post-metadata">

**Author:** ![Ben](https://avatars.discourse-cdn.com/v4/letter/b/df788c/32.png) [@Ben](https://forum.logik.tv/u/Ben)\
**Post date:** [October 5, 2022, 9:46am UTC](https://forum.logik.tv/t/matchbox-shaders-no-one-asked-for/6876/5 "2022-10-05T09:46:22Z")

</div>

These are great thank you! You never know what requests you might get and these could save somebody alot of stress!

The predator one im sure will see alot of action if you dont mind the pun 😉

---

<div class="post-metadata">

**Author:** ![lewis](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/lewis/32/220_2.png) [@lewis](https://forum.logik.tv/u/lewis)\
**Post date:** [October 9, 2022, 6:02pm UTC](https://forum.logik.tv/t/matchbox-shaders-no-one-asked-for/6876/6 "2022-10-09T18:02:25Z")

</div>

Finally had a chance to check on an older Mac version of Flame and the errors it gave were actually stuff I wasn’t expecting - there’s a working version below after I changed:

- #version120 on first line
- texture2D() instead of texture() on line 96
- int(min(float(iFrame), 0.0)) instead of just min() in the loop headers on lines 297 and 338 because in GLSL 120 min always returns float
- glFragCoord.xy instead of just glFragCoord on line 381 because it’s actually a vec4

The Mac compiler is just so unchill compared to the Nvidia one 😣  
[KE\_Extruder (Mac fixes).zip](https://forum.logik.tv/uploads/short-url/x5BFXeJWVDjSHqmejKhsFTjeB7i.zip) (131.8 KB)

---

<div class="post-metadata">

**Author:** ![KuleshovEffect](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/kuleshoveffect/32/4928_2.png) [@KuleshovEffect](https://forum.logik.tv/u/KuleshovEffect)\
**Post date:** [February 18, 2023, 1:51am UTC](https://forum.logik.tv/t/matchbox-shaders-no-one-asked-for/6876/7 "2023-02-18T01:51:54Z")

</div>

KE\_SineWave distorts your image according to a sine wave:  
 ![KE_SineWave](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/2/2c8e977d1435a21dc5ddaddc7426cfbe24d6ff34.gif)

This shader (along with the rest) has been upload to logik-matchbook:

> **[Shader: KE\_SineWave](https://logik-matchbook.org/shader/KE_SineWave)**
>
> Distorts your image based on a sine wave

-Ted

---

<div class="post-metadata">

**Author:** ![randy](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/randy/32/6122_2.png) [@randy](https://forum.logik.tv/u/randy)\
**Post date:** [February 19, 2023, 4:00am UTC](https://forum.logik.tv/t/matchbox-shaders-no-one-asked-for/6876/8 "2023-02-19T04:00:43Z")

</div>

Wayne’s World wipe!

---

<div class="post-metadata">

**Author:** ![ALan](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@ALan](https://forum.logik.tv/u/ALan)\
**Post date:** [February 22, 2023, 6:12pm UTC](https://forum.logik.tv/t/matchbox-shaders-no-one-asked-for/6876/10 "2023-02-22T18:12:10Z")

</div>

We need to curate the logic-matchbook. There is a bunch of non-relavent and poorly documented stuff. I’d rather have 40 great shaders than try to find those in a pile of 200.

---

<div class="post-metadata">

**Author:** ![PlaceYourBetts](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/placeyourbetts/32/6852_2.png) [@PlaceYourBetts](https://forum.logik.tv/u/PlaceYourBetts)\
**Post date:** [February 22, 2023, 6:20pm UTC](https://forum.logik.tv/t/matchbox-shaders-no-one-asked-for/6876/11 "2023-02-22T18:20:45Z")

</div>

We can start by removing those old Logik event invites.

---

<div class="post-metadata">

**Author:** ![ALan](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@ALan](https://forum.logik.tv/u/ALan)\
**Post date:** [February 22, 2023, 6:21pm UTC](https://forum.logik.tv/t/matchbox-shaders-no-one-asked-for/6876/12 "2023-02-22T18:21:34Z")

</div>

Yup… with respectful deference to Ivar, they are not relevant anymore.

> [@PlaceYourBetts](#):
>
> We can start by removing those old Logik event invites.

---

<div class="post-metadata">

**Author:** ![PlaceYourBetts](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.logik.tv/placeyourbetts/32/6852_2.png) [@PlaceYourBetts](https://forum.logik.tv/u/PlaceYourBetts)\
**Post date:** [February 22, 2023, 6:46pm UTC](https://forum.logik.tv/t/matchbox-shaders-no-one-asked-for/6876/13 "2023-02-22T18:46:15Z")

</div>

To be honest though, if you download the full collection you should get the full collection.

It is easy to delete all of the LOGIK invitations, and then if you like you can further clean up and choose your OWN favourites. There might be some that you think you’ll never use until client asks for a Wayne’s World Transition.

I have been using the `space + tab` search function heaps and it has become an essential part of my workflow now. So easy to find the matchboxes you want and star ⭐ your favourites

---

<div class="post-metadata">

**Author:** ![ALan](https://avatars.discourse-cdn.com/v4/letter/a/a87d85/32.png) [@ALan](https://forum.logik.tv/u/ALan)\
**Post date:** [February 22, 2023, 7:58pm UTC](https://forum.logik.tv/t/matchbox-shaders-no-one-asked-for/6876/14 "2023-02-22T19:58:44Z")

</div>

every time there is a new install of LOGIK shader, you’d have to self curate.

---

<div class="post-metadata">

**Author:** ![kily](https://avatars.discourse-cdn.com/v4/letter/k/a88e4f/32.png) [@kily](https://forum.logik.tv/u/kily)\
**Post date:** [February 22, 2023, 7:58pm UTC](https://forum.logik.tv/t/matchbox-shaders-no-one-asked-for/6876/15 "2023-02-22T19:58:58Z")

</div>

This is my personal script to sort matchboxes. It creates new folders and group them by families. It’s sh, not python. It’s really simply and It can be much improved but it works and for me it’s enough. The unsorted stuff stay on first level but it’s easily browseable.

![screen](https://us1.discourse-cdn.com/flex020/uploads/thedepartmentofexternalservices/original/2X/d/d73d1fe64c4c1f5e1699259b5aa723d3517bb159.png)

It should work for macos also, although it’s something that should be checked.

As matchboxes installer creates folders with sudo privileges, the script has to be executed with sudo, too. ( “sudo ./sort\_matchboxes.sh” )

note. It’s updated for last matchboxes.Every new matchbox, or family has to be added manually. On the other hand, It would be cool add a version number for the matchbox installer as it is being upgraded.

[sort\_matchboxes.zip](https://forum.logik.tv/uploads/short-url/jRPKGOo4Kp3UqzfZsljUIrsSbnS.zip) (854 Bytes)
