Pixelsorting! It looks awesome! Pixelsort your art and turn it into GLITCH ART!
After reading Crespy Baptiste's excellent writeup on Pixel sorting in GLSL (Shadertoy link), I wanted to build on the work he did, to implement this style of image distortion in FFGL.
![]()
![]()
I originally wrote this effect plugin 5 years ago, using Resolume FFGL. However since then, Resolume Wire has made writing Video Effects way more accessible. I recently converted the ffgl code over to Wire and made some upgrades.
Parameters:
- Distance: each frame, how far can pixels move as they're being sorted?
- Threshold: prevent pixels from sorting past each other if their difference is too large. At 0, this rule doesn't apply; at 1, no pixels will sort.
- Freshness: how much of the new video do we mix into the pixelsorted image? at 0, thie image is essentially frozen. At low values, sorted pixels fill the output. At 1, we mix in a lot of the new video image.
- Toggle: toggle to start/stop sorting
- Vertical: switch from horizontal to vertical sorting
- Reverse: swap left/right and up/down sorting
This is designed for Resolume 7.18 and up; it probably won't work with older versions! To use with Resolume, drop these .wired files into your Plugin Directory (set under Preferences->Video) and restart Resolume.
Source code here.DOWNLOAD HERE. This software is provided for free under the MIT License. If you find this useful, consider donating $2 to support my future VFX efforts.
