Hey everyone! I was inspired by 'BadAppleBot' (from the recent chess programming contest) to try and run Bad Apple inside of my fluid simulation project. To do this, I've taken the frames from the Bad Apple video and used the Jump-Flooding algorithm to calculate vectors for every frame that go from each pixel to the nearest pixel of the opposite colour. These vectors are then used to accelerate the particles (along with the pressure forces from the fluid sim of course). I recommend watching this in the highest quality you can, because compression will surely turn it to sludge. (You can also find a link to download the full-quality video in the description). If you'd like to play around with the project, it's currently in early access to Patreon supporters, but will be freely accessible in ~2 weeks.
As someone who's had to deal with fluid simulations for the past 17 odd years, I fully appreciate every time the simulation looks like it's exploding from too fast of a state change
if it can run code, it runs “Doom”. if it can play sounds, it plays “through the fire and flames”. if it can render, it renders “Bad Apple”. it’s the rule, no exceptions.
Uh oh, I don't know "through the fire and flames" yet... Guess I have some research to do :) Edit: I have now listened to the original. What are some of your favorite examples of remakes of it on things it probably shouldn't have been remade on? Edit 2: I realized I've seen at least one example of it. The edited Lego guitar video from Brick Experiment Channel
I love the part at 1:41 there aren't enough particles for the character's body because of how the fluid got dispersed, but then when she reaches up, more particles flood in and make her outline clearer. Really neat interaction there
@@nepunepu5894 It sounded like he had _heard_ of "Bad Apple!!" and seen a couple examples of it, but probably didn't know exactly _what_ it was and _definitely_ didn't know _why._
This! Even though I'm not usually particularly interested in Bad Apple, except for casually acknowledging it's a staple of the internet... watching this was so satisfying!!
@@phutureproof Agreed. It's the deep, unintended irony of a milieu of ironic humor that nowadays one has to be explicit by adding "unironically" in order to be understood as being sincere.
@@SkarmoryOfficial To add to this, the video the remix comes from is entirely black/white two-toned, which makes it not only interesting to look at, but it also means that the video can be represented as a binary state. Combining this with Touhou's overwhelming popularity as a series, what this means is that Bad Apple can be played in pretty much any format as long as it can produce visuals.
@@onlysmiles4949To make a very minor and inconsequential correction, there _are_ midtones in the Bad Apple MV. They're rare, but certain scenes (such as 1:27 in the flames) do use midtones. Of course, they're not visible in the fluid sim, nor do most versions of the meme take them into account, but they're there nonetheless :P
I always laugh out loud whenever I see an insane bad apple video. A bad apple homage from Sebastian was the last thing that I had on my mind. God tier.
THIS LOOKS SO GOOD WHAT THE HELL ive seen countless iterations of this played over other "screens", but this is the first time ive gotten goosebumps for an entire bad apple video, specially the extra effects aaaaa i need the lossless videooo
Jokes aside, this proves just how well-made the particle system is. It wasn't built to work for the video, but rather adapts to whatever is requested. Fantastic job making it render a full video!
Holy shit! I forgot he made a particle simulator. The fact that this is running on software that he wrote makes this EVEN MORE impressive 🤯 title should've been "Bad Apple but it's on a Fluid Simulator I Wrote"
thanks to him I learned about this meme and now every time I open UA-cam I see another version of the original meme in recommendations and I watch it too
Some of my favourite parts. 00:55 - The way Flandre* has the water settle within them, before violently EXPLODING into the background is a super cool visual. 01:38 - I just like how the water splashes around these two versions of Keine*, as they turn into that ball of light. The entirety of the section from 02:22 through 02:37... The splashes, yada-yada... The blue glow not quite keeping up with the visuals make it look even cooler. 03:00 through 03:11 starts out kinda incomprehensible, but the flower petals comprised of water look GORGEOUS. 03:20 - Funny how pretty much all the "water" in the music video is black, so there's no room for the water simulation to do anything funky. Still, that droplet turning into Reimu* looks great. I just love the transition of the colours, man, I'm no engineer, but this looks beautiful. * Corrections of character names provided by @HyperVanilo in the replies.
Thanks for pointing those out, didn't pay much attention at first but I loved the Flandre part. My favorite one was 1:41, where the silhouette approaches from the dark, but it gets filled as soon as she reaches for the light. And I find it funny that, at 3:27, we have the same setup but since Reimu stay on the right, she doesn't show up at all.
The sim adds so much fluidity (pun intended) to the original animation, it makes me think that it might be possible to have a fluid sim to assist in animating 3D characters by adding mesh deformation as a secondary animation.
... Jiggle physics, soft body physics. Games have been doing something similar for a long while, mostly to make exaggerated boob and butt jiggle to titillate 13-year-olds.
This is by far my favorite version of bad apple. Actually 2nd, because nothing will ever beat the crackheads that did it on r/place. But even considering that, it's still the coolest looking one.
You're a genius. As someone who grew up with Touhou as his main game during childhood, and is now working around maths and simulations, I can safely say, what a time to be alive !
@@feha92 The quality of the videos of the guy or UA-cam channel you're referring to lowered, didn't they? Do you still like the guy's videos? You don't feel like the videos got worse than from about a year ago?
New video idea: Take this fluid simulation, add a third dimension, add a few more params to each ball such as temperature, humidity, and pressure, and make a weather predictor. Then take it a step further and graduate to one of the models used to predict hurricane paths.
Wow this is amazing! The result is so smooth, I love it. Especially after seeing it too many times on an 8x8 grid. ;) As the author of BadAppleBot, I'm glad to have inspired you :)
I've seen hundreds of these across all sorts of wild platforms, but this is one of the very few that I feel adds something new to the animation. The feeling of momentum, and the clever filling animation you did around 1:40, really elevate it. Really stand-out work.
Clicked without even realizing it was a Sebastian Lague video! An interesting side effect of the simulation I noticed was that parts furthest/not connected to the fluid "blob" ended up not getting filled/rendered as quickly. Most noticeable at 3:29 when Reimu on the right is completely disconnected from the fluid and obscured, and also lead to a cool unintended effect at 1:43 where Eirin absorbs simulation particles from the moon. Unexpected but great video as always!
No wonder the channel name sounded so familiar!! You're the guy who made that globe-with-plane-game-thingy!! You're probably the last person I'd expect to make a Bad Apple cover
Now this one is something truly spectacular! I love the unintentional symbolism at 3:00 . There's a certain kinetic energy to this one, like the fluid simulation is bringing out all of Bad Apple!!'s motion and amplifying it. Out of all the Bad Apple!!s I've seen, this one is definitely up there.
This is like a next level winamp visualizer! I love the contrast and colors, and interest the simulation adds without really detracting from the original
Thanks! It averages around 100 fps on my machine, but that number can dip to less than 10 fps at some moments where the animation forces particles to become very densely squeezed together (due to the cost of the neighborhood search)
@@SebastianLague Would it make any sense to introduce culling when multiple particles are essentially overlapping? Might make a computational difference, but I don't know how it would affect the simulation itself of course.
@@StriderGW2 culling is just a rendering thing, right? I think rendering this scene is comparatively trivial to the CPU load caused by the simulation itself - unless it's a compute-shader, of course. keep in mind i'm kind of talking out of my ass, i have no idea how any of this works.
This is incredible, man! I'm always super inspired when i watch your videos, man, as a programmer myself, you make me realize programming is such an art form!
Looks like you’ve updated the sim code! That’s awesome. That pseudo surface tension around the border looks to be gone. Plus the overall movement looks to be more fluid. Looks awesome!
He mentioned in a comment, but he is not using walls to create the shapes. He is using an algorithm to essentially generate a vector field that accelerates all fluid particles in uncolored pixels to closest "colored" pixel. It would also explain the "corona" around all shapes, as they are both accelerated to the shape and repelled by the dense fluid inside it. In addition, he seems to have removed gravity. edit: which means that the pseudo-surface-tension around walls won't appear - since there are no walls
someone in 2009: "yeah, I will make a black and white clip of a song from this niche game, i think it will only get a few views, but it's my passion" 14 years later:
Hey everyone! I was inspired by 'BadAppleBot' (from the recent chess programming contest) to try and run Bad Apple inside of my fluid simulation project. To do this, I've taken the frames from the Bad Apple video and used the Jump-Flooding algorithm to calculate vectors for every frame that go from each pixel to the nearest pixel of the opposite colour. These vectors are then used to accelerate the particles (along with the pressure forces from the fluid sim of course). I recommend watching this in the highest quality you can, because compression will surely turn it to sludge. (You can also find a link to download the full-quality video in the description).
If you'd like to play around with the project, it's currently in early access to Patreon supporters, but will be freely accessible in ~2 weeks.
Thank you for this masterpiece
BadAppleBot is the true winner of the contest
Sometimes to win the game you have to break the board.
You've made an instant classic.
you are the goat man. also new Video these?
Engineers will spend countless hours making a particle based fluid simulation and then use it to make shitposts. Absolutely marvelous
He had made it long ago, he just spent a couple of hours turning it into a bad apple simulation.
this is by no means a shitpost
Shit apple
@@hi_its_jerrycalling it that is almost an insult
almost @@w花b almost
As someone who's had to deal with fluid simulations for the past 17 odd years, I fully appreciate every time the simulation looks like it's exploding from too fast of a state change
if it can run code, it runs “Doom”. if it can play sounds, it plays “through the fire and flames”. if it can render, it renders “Bad Apple”. it’s the rule, no exceptions.
Will correct you:
"If it can produce freely moving and at least dual colored image, you can make "Bad Apple on it"
Uh oh, I don't know "through the fire and flames" yet... Guess I have some research to do :)
Edit: I have now listened to the original. What are some of your favorite examples of remakes of it on things it probably shouldn't have been remade on?
Edit 2: I realized I've seen at least one example of it. The edited Lego guitar video from Brick Experiment Channel
yes.
I’d argue that if it can play sounds, it can play Megalovania
@@steampunk-llama well no megalovania would be if it is music it can be turned into megalovania
I love the part at 1:41
there aren't enough particles for the character's body because of how the fluid got dispersed, but then when she reaches up, more particles flood in and make her outline clearer. Really neat interaction there
Similar thing at 2:40 where most particles are trapped on the right, but flow over her head to the left.
3:20 cursed moment for one of those ironic “life imitates art” memes
Harnessing the power of the sun
I personally like 3:11
Her hands materialize from the handle up until her whole body is built.
1:41 is where this jumped to my favorite version of this meme
The man learned what Bad Apple is (from the chess tournament) and went straight for it lol
And he absolutely nailed it too! Incredible xD
i think he already knows, he just reminded such internet culture exist
@@nepunepu5894 It sounded like he had _heard_ of "Bad Apple!!" and seen a couple examples of it, but probably didn't know exactly _what_ it was and _definitely_ didn't know _why._
@@timothymclean Yeah, considering his initial reaction to seeing "BadAppleBot" among the chess bots, he definitely had at least some vague idea of it
How about you? Do you know what Bad Apple actually is?
The inevitability principle that anything will be turned to Bad Apple.
This was a trippy experience, especially at 2:21
2:48 - The single most hydrophobic drop of liquid I have ever seen.
zooooooommmm
3:18
The wettest drop of liquid I have ever seen.
And then it became a girl
Man the "splash" when it goes from dark to fluid is so goddamn pretty, like 0:56 is so 🤩
oh woe really? my balls crunch every time i see it, like i just want the water to sit still why you gotta disturb it like that
…
@@tam_69420excuse me your WHAT?? CRUNCH??? 💀
@@tam_69420 wtf do you mean by crunch
Get out of here @@tam_69420
This unironically actually looks amazingly good
if only you hadnt felt the need to add the word unironically :(
@@phutureproof I absolutely unironically actually genuinely authentically agree
@@phutureproof ‘Twas so good I had to make sure my statement was double confirmed !!!
This! Even though I'm not usually particularly interested in Bad Apple, except for casually acknowledging it's a staple of the internet... watching this was so satisfying!!
@@phutureproof Agreed. It's the deep, unintended irony of a milieu of ironic humor that nowadays one has to be explicit by adding "unironically" in order to be understood as being sincere.
0:56 I CANT STOP REWATCHING THAT PART
I KNOW THE WAY IT FLOWS OUT OF HER
AYO
3:10 ngl when her hands appeared that was really cool
Sebastian has gone from not quite understanding the meme to making his own version. That's called growth.
I still don't understand the meme I think
@@SkarmoryOfficial To add to this, the video the remix comes from is entirely black/white two-toned, which makes it not only interesting to look at, but it also means that the video can be represented as a binary state.
Combining this with Touhou's overwhelming popularity as a series, what this means is that Bad Apple can be played in pretty much any format as long as it can produce visuals.
@@onlysmiles4949To make a very minor and inconsequential correction, there _are_ midtones in the Bad Apple MV. They're rare, but certain scenes (such as 1:27 in the flames) do use midtones. Of course, they're not visible in the fluid sim, nor do most versions of the meme take them into account, but they're there nonetheless :P
@@TheKd8lvt They seem to be visible in the fluid sim too.
@@TheKd8lvtmost versions I see that are strictly 2 tones just use dithering to give the effect of midtones
3:16 Underrated moment, water flows down by the scythe, gets to the tip and then amass in the drop, really cool
This will inevitably become the most viral video on this channel.
Mark my words.
Coming back to this comment in 3 years when it has 10+ million views
how did you comment an hour ago? this video was uploaded 2 minutes ago.
@@M0nu5yeah good point...
@@M0nu5patreon shenanigans
it’s unlisted though (i got here by notification)
I love how a bunch of the fluid flows directly into her shape at 1:43. Seeing the pressure constantly change and freak out was really fun.
This works really well because the bad apple animation is already really fluid
It's interesting when part of the animation gets compressed to a point and the fluid sort of explodes out from it
The girl splashing the fluid as she dances across the screen at 2:13 is my favorite part
How about 2:00 when she shoots the fluid simulation from her finger?
I always laugh out loud whenever I see an insane bad apple video.
A bad apple homage from Sebastian was the last thing that I had on my mind.
God tier.
IKR? As soon as I see the title and the channel I immediately went "WAIT HOLD ON"
0:23 no because this is actually majestic
THIS LOOKS SO GOOD WHAT THE HELL
ive seen countless iterations of this played over other "screens", but this is the first time ive gotten goosebumps for an entire bad apple video, specially the extra effects aaaaa i need the lossless videooo
Thanks! I've added a download link to the video file in the description
@@SebastianLaguethank you so much!
1:24 looks SO GOOD! The sword swing is really extenuated by the particals moving
it’s not a sword it’s more of a stick
Jokes aside, this proves just how well-made the particle system is. It wasn't built to work for the video, but rather adapts to whatever is requested. Fantastic job making it render a full video!
Holy shit! I forgot he made a particle simulator. The fact that this is running on software that he wrote makes this EVEN MORE impressive 🤯 title should've been "Bad Apple but it's on a Fluid Simulator I Wrote"
2:05 *BRO, THIS LOOKS SOO COOL!!!*
The best version of the video so far, the animation looks so fluid!
funny that
Literally
oi! you stole my joke! 3 hours before I made it!
Papyrus: MORE PUNS NOOOO!!!!!!!!
If he used something else, it would be a solid one
0:54 Has to be the coolest part! I love the way the shockwave blasts out when the colors invert!
Nice to see my favorite programming UA-camr jump on the infectious trend of Bad Apple
The undying trend
thanks to him I learned about this meme and now every time I open UA-cam I see another version of the original meme in recommendations and I watch it too
At this point this would be considered a tradition. Trends are meant to be short-lived.
1:30 using fluid simulation to simulate fire
Hey! This song wasn’t composed by Waterflame…
@@novantha1God damnit, that was a good one.
Some of my favourite parts.
00:55 - The way Flandre* has the water settle within them, before violently EXPLODING into the background is a super cool visual.
01:38 - I just like how the water splashes around these two versions of Keine*, as they turn into that ball of light.
The entirety of the section from 02:22 through 02:37... The splashes, yada-yada... The blue glow not quite keeping up with the visuals make it look even cooler.
03:00 through 03:11 starts out kinda incomprehensible, but the flower petals comprised of water look GORGEOUS.
03:20 - Funny how pretty much all the "water" in the music video is black, so there's no room for the water simulation to do anything funky. Still, that droplet turning into Reimu* looks great.
I just love the transition of the colours, man, I'm no engineer, but this looks beautiful.
* Corrections of character names provided by @HyperVanilo in the replies.
You win commenting!
Thanks for pointing those out, didn't pay much attention at first but I loved the Flandre part.
My favorite one was 1:41, where the silhouette approaches from the dark, but it gets filled as soon as she reaches for the light. And I find it funny that, at 3:27, we have the same setup but since Reimu stay on the right, she doesn't show up at all.
@@philcoast1031 The part with the character reaching for the light and thus becoming visible is cool too, yeah!
My favorite moment was when she touched the moon and it violently filled her in due to the pressure differential
If you pause it at 00:58, one of the freeze frames during the explosion looks really cool!
The moment at 1:42 where the fluid from the ball flows into the outilne of the character is incredibly cool looking
Stealing the ball's power
That's Moon actually
@@HyperVanilo well the moon's a ball isn't it ?
This has to be one of the coolest renditions I've seen of Bad Apple
0:56 CHILLS
The sim adds so much fluidity (pun intended) to the original animation, it makes me think that it might be possible to have a fluid sim to assist in animating 3D characters by adding mesh deformation as a secondary animation.
... Jiggle physics, soft body physics. Games have been doing something similar for a long while, mostly to make exaggerated boob and butt jiggle to titillate 13-year-olds.
0:21 this the most fucking magical bad apple witch anime women I've ever seen on youtube
This is by far my favorite version of bad apple. Actually 2nd, because nothing will ever beat the crackheads that did it on r/place. But even considering that, it's still the coolest looking one.
0:11 it looks like she's blowing the particles away from her mouth
Because the localized pressure of that are is higher than the surrounding
You're a genius. As someone who grew up with Touhou as his main game during childhood, and is now working around maths and simulations, I can safely say, what a time to be alive !
Very nice childhood! :) ❤🎉
hold on to your papers!
Now that's a cool childhood!
@@feha92
The quality of the videos of the guy or UA-cam channel you're referring to lowered, didn't they? Do you still like the guy's videos? You don't feel like the videos got worse than from about a year ago?
This is the greatest day of my life, because Sebastian Lague Touhou hijack
New video idea: Take this fluid simulation, add a third dimension, add a few more params to each ball such as temperature, humidity, and pressure, and make a weather predictor. Then take it a step further and graduate to one of the models used to predict hurricane paths.
youtube compression be loving this
*This is the most satisfying bad apple video i ever seen*
Wow this is amazing! The result is so smooth, I love it. Especially after seeing it too many times on an 8x8 grid. ;) As the author of BadAppleBot, I'm glad to have inspired you :)
This is just the first step. There is no turning back now as you will slowly descend to the depths of internet culture
I've seen hundreds of these across all sorts of wild platforms, but this is one of the very few that I feel adds something new to the animation. The feeling of momentum, and the clever filling animation you did around 1:40, really elevate it. Really stand-out work.
You could say that this is a very fluid animation
Clicked without even realizing it was a Sebastian Lague video!
An interesting side effect of the simulation I noticed was that parts furthest/not connected to the fluid "blob" ended up not getting filled/rendered as quickly. Most noticeable at 3:29 when Reimu on the right is completely disconnected from the fluid and obscured, and also lead to a cool unintended effect at 1:43 where Eirin absorbs simulation particles from the moon. Unexpected but great video as always!
This is one of the coolest BAs I've seen! Awesome
No wonder the channel name sounded so familiar!! You're the guy who made that globe-with-plane-game-thingy!! You're probably the last person I'd expect to make a Bad Apple cover
"that globe-with-plane-game-thingy" is now my new canonical name for that project.
I've been following Sebastian Lague for years now and when I clicked on this video I was NOT expecting him LOL. Great work man
3:19 Fluid-ception!
crazy how i've seen countless of these, but never the actual animation
The trend of Software Engineers putting Bad Apple into everything continues
Now this one is something truly spectacular! I love the unintentional symbolism at 3:00 . There's a certain kinetic energy to this one, like the fluid simulation is bringing out all of Bad Apple!!'s motion and amplifying it. Out of all the Bad Apple!!s I've seen, this one is definitely up there.
Ok, I did not expect this kind of video on this channel but I love it.
The bit at 1:50 looks so cool
3:01: Recursive fluid similation
this looks really cool honestly
I'm amazed how 0:41 actually looks like dropping a cup into fluid
this is one of the most mesmerizing ones i’ve seen
absolutely incredible
The amount of wallpaper potential is insane
No vortices was harmed in the making of this video
1:55 it feels cursed seeing the Prismriver Sisters play like that.
having come into this directly from the fluid sim video this is the COOLEST use of that software that I could have imagined, this is legendary
when i thought your channel couldn't get any better, you released this masterpiece, i always really appreciate your work
Unironically the best one. Those flashes when the contrast flips looks so dramatic when it's accompanied by the fluid simulation rapidly resettling.
This is so unexpected and I love it, It's so smooth.
Also that water droplet at 3:18 looks soo good.
Half of my homepage consists of bad apple videos. This one is definitely one of my favourites, if not the best I’ve seen. Thank you a lot
This is like a next level winamp visualizer! I love the contrast and colors, and interest the simulation adds without really detracting from the original
I watched one bad apple video and now it’s everywhere
Woah, Mokou's flames turned out so cool!
This is what happens when Maxwell's demon gets into touhou.
i can’t help but see the particles as bullets
this has gotta be the mother of all spellcards
He did it. The madman did it.
A real piece of art. Thanks Sebastian.
Mate. Playing a weighted video through a fluid particle simulator is genious. Well done.
welp
let's see how popular this gets!
nicely done. is this rendered in real time?
Thanks! It averages around 100 fps on my machine, but that number can dip to less than 10 fps at some moments where the animation forces particles to become very densely squeezed together (due to the cost of the neighborhood search)
@@SebastianLague Would it make any sense to introduce culling when multiple particles are essentially overlapping? Might make a computational difference, but I don't know how it would affect the simulation itself of course.
@@StriderGW2 culling is just a rendering thing, right? I think rendering this scene is comparatively trivial to the CPU load caused by the simulation itself - unless it's a compute-shader, of course. keep in mind i'm kind of talking out of my ass, i have no idea how any of this works.
@@SebastianLagueI'm glad this got answered, thank you :)
@@JustinKoenigSilicaIf you haven't watched the previous videos, he ends up switching it to a compute shader near the end
This is incredible, man! I'm always super inspired when i watch your videos, man, as a programmer myself, you make me realize programming is such an art form!
Looks like you’ve updated the sim code! That’s awesome. That pseudo surface tension around the border looks to be gone. Plus the overall movement looks to be more fluid. Looks awesome!
He mentioned in a comment, but he is not using walls to create the shapes. He is using an algorithm to essentially generate a vector field that accelerates all fluid particles in uncolored pixels to closest "colored" pixel. It would also explain the "corona" around all shapes, as they are both accelerated to the shape and repelled by the dense fluid inside it.
In addition, he seems to have removed gravity.
edit: which means that the pseudo-surface-tension around walls won't appear - since there are no walls
This is the first time that I've actually watched an entire "Bad Apple but it's ____" video, well done!
This is one of the most seamless integrations of the video I've seen in any of these
This is gonna absolutely blow up
Now this is what computer science was created for.
damn, this has be one of the best version of bad apple out here.
looks absolutely insane
ok this is just mind blowing
The section at 0:53 goes HAAARD
Woah! Nice video!
This looks and feels like a screensaver from the early 2000s. Marvelous 💙
someone in 2009: "yeah, I will make a black and white clip of a song from this niche game, i think it will only get a few views, but it's my passion"
14 years later:
Amazing work
Holy shit this is unironically so satisfying
GOD DAMN THIS LOOKS SICK AS HELL!
I like how the balls go out of bounds and then back in other shape.
My boy Sebastian Lague making his own Bad Apple? That's a good start for the year.
Not what I expected from you, but not complaining. Can't wait to see when this is the most popular video on your channel.
Ocean currents update lookin wild
youtube compression system is having fun with this one
This is a video I never expected from Sebastian
I think it's funny that Bad Apple is like the perfect luma test 😂
This looks great when the colour inverts. Really unique concept!
A piece of the image is missing here and there, most noticeable towards the end at 3:28, because so few of the particles made it to the other side.
Now this is some fluid animation.