Bad Apple!!
git: https://ceriinas.me/git/BadApple.git
tar: https://ceriinas.me/git/BadApple.tar.gz
BFAS patch (included in source)
These animations were rendered using a three-quarters-baked art program I made, BFAS. The code here generates positions for colored and white points, feeds those into BFAS to render a frame which is output to shared memory, and then assembles a final video. The point movement is as follows:
- The screen is divided into regions by flood filling
- Regions have points matching their color status assigned based on region sizes and proximity
- Points are pulled into their assigned region ~one by one if they are outside of it
- Directional voronoi relaxation is done (a point at the center left of a U would move down, not right)
- This is horribly inefficient, causing the process to take 54 hours on my pretty beefy machine
- (My answer to every question was "I'm lazy, let's just brute force")
- Output is attached so that you don't have to run that if you want to play with anything or use the point positions for something else
- This is horribly inefficient, causing the process to take 54 hours on my pretty beefy machine
- 4-mean smoothing is applied because the relaxation goes all the way each time which causes some jittering (relaxation is done at 480x360)
Development Photos




The first successful frame rendered through BFAS:





"I think my memory leak might be related to other memory bugs. Just a hunch."

(I haven't fixed the memory leak, BFAS just gets restarted every 150 frames rendered :D)









