How To Make Amazing Glitch Art With Processing and ASDF Pixel Sort
Today I am going to show you how to make a really cool effect, most recently featured in the live action Ghost In The Shell movie.
This effect is known as "Pixel Drifting."
Download Processing from the link above, extract to a nice cozy place on your hard drive. Then download the ASDF script from github, and extract it to a separate directory in your main Processing folder.
Run Processing and select File > Open. Navigate to the ASDF folder in your Processing directory and choose ASDFPixelSort.pde
This will open the file in Processing. Your screen should look like mine below.
Now we will choose and image to pixelsort, for this tutorial, I chose a picture of Satoshi Nakamoto.
Save this image (or any) into your ASDF Pixelsort Folder.
Next we must change the parameters in the ASDF script.
Change "MyImage" to the name of your selected image, in my case I would put "satoshi". Next change the file type to match your selected file, since my image is a PNG, I will leave the file type as "png". Your screen should look like mine.
Now its time to glitch the image. ASDF has 3 main sorting modes; black, brightness, and white. These values go under "int mode". The default value is 1, or brightness mode.
0 = black
1 = brightness
2 = white
Input your selected sorting mode, and click the "play" button at the top of processing.
Below is the result when we choose the black sorting mode.
And sorting mode 1
And sorting mode 2
But wait! Sorting mode 2 didn't do anything!
Your right! Sorting mode 2, or "White Sorting" looks for very bright and white colored pixels to move. If nothing happens, we just need to tweak the parameters.
Let's change the "int whiteValue" from "-13000000" to "-3000000" and see what happens.
You should now get something like this.
Much better right?
In a nutshell, this is the most basic way to acheive this effect. Feel free to mess around with the other parameters and post your results under the tag #pixeldrift. If you have any questions just leave a comment and I'll get back to you.
Thanks for taking the time to read, and if you enjoyed this tutorial please consider following me for more.