Bad Apple but it's a Fluid Simulation
Vložit
- čas přidán 2. 01. 2024
- I tried rendering Bad Apple inside of a particle-based fluid simulation.
(I recommend watching in 4K if you can, as video compression is not overly friendly towards all the little dots!)
Full resolution video download:
drive.google.com/u/0/uc?id=1z...
If you'd like to learn more about the fluid simulation, take a look at this video:
• Coding Adventure: Simu...
And if you'd like to support my work (and get early access to the project files), you can do so via Patreon:
/ sebastianlague
Or support on Ko-Fi ko-fi.com/sebastianlague
Credits:
Music by Alstroemeria Records (feat nomico): • [Alstroemeria Records]...
Animation by あにら (Anira). Specifically, I used this version: • 【東方】Bad Apple!! PV【影絵】 - Zábava
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
Ah shit. This is going to be stuck in my head again for weeks. Bring it on.
Sometimes to win the game you have to break the board.
You've made an instant classic.
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
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 @@whannabi almost
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
2:48 - The single most hydrophobic drop of liquid I have ever seen.
zooooooommmm
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?
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.
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
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"
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)
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
…
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
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!
3:10 ngl when her hands appeared that was really cool
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!
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"
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
1:30 using fluid simulation to simulate fire
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
Nice to see my favorite programming CZcamsr 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 CZcams 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.
This has to be one of the coolest renditions I've seen of Bad Apple
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 ?
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.
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.
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 CZcams 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
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 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!
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
2:05 *BRO, THIS LOOKS SOO COOL!!!*
Unironically the best one. Those flashes when the contrast flips looks so dramatic when it's accompanied by the fluid simulation rapidly resettling.
3:01: Recursive fluid similation
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.
This is one of the coolest BAs I've seen! Awesome
this is a completely different beast in 4k... watched it in 1080p and thought hmm... that's kinda neat. Watching it in 4k you can actually see most of the individual particles and flow of the fluid and it looks mindblowing. really cool 🙂
The girl splashing the fluid as she dances across the screen at 2:13 is my favorite part
Ok, I did not expect this kind of video on this channel but I love it.
The amount of wallpaper potential is insane
The inevitability principle that anything will be turned to Bad Apple.
This was a trippy experience, especially at 2:21
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
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
0:56 I CANT STOP REWATCHING THAT PART
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.
The trend of Software Engineers putting Bad Apple into everything continues
i can’t help but see the particles as bullets
this has gotta be the mother of all spellcards
Ocean currents update lookin wild
0:21 this the most fucking magical bad apple witch anime women I've ever seen on youtube
when i thought your channel couldn't get any better, you released this masterpiece, i always really appreciate your work
This is so unexpected and I love it, It's so smooth.
Also that water droplet at 3:18 looks soo good.
0:54 Has to be the coolest part! I love the way the shockwave blasts out when the colors invert!
Stunning. The best version I've seen since the sand one. I know nothing about particle physics but some of the colour effects your simulator generates are just beautiful.
The bit at 1:50 looks so cool
I'm amazed how 0:41 actually looks like dropping a cup into fluid
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
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
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!
Woah, Mokou's flames turned out so cool!
this is utterly hypnotic, one of the best Bad Apple's I've ever seen
My boy Sebastian Lague making his own Bad Apple? That's a good start for the year.
0:11 it looks like she's blowing the particles away from her mouth
A real piece of art. Thanks Sebastian.
This is one of the best Bad Apple remakes I've ever seen. The change of color the more dense the water is makes it look even nicer than just black-and-white.
damn, this has be one of the best version of bad apple out here.
This is one of the most seamless integrations of the video I've seen in any of these
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
The colors and the way the particles move look really awesome when paired with bad apple
As a fan of both your channel and absurd, creative and complicated "Bad apple but"s this is an unexpected but welcome addition.
I've been watching a bunch of these over the last month, super cool to see you throw one up too. Good stuff.
dang some of the moments in this are no joke some of the best most dynamic visuals I have ever seen wth
i don't know why, but the glowing kinda effect in the simulation brings me so much joy. it's just so mesmerizing to look at.
Man youtube compression had a field day with this one
This looks and feels like a screensaver from the early 2000s. Marvelous 💙
Now this is what computer science was created for.
The glowing blue looks absolutely beautiful!
this is quite possibly the most beautiful thing I've ever seen, without exaggeration
looks absolutely insane
Amazing work
This is a video I never expected from Sebastian
This is gonna absolutely blow up
I think it's funny that Bad Apple is like the perfect luma test 😂
CZcams compression engine is working overtime
i never wouldve expected you to make a bad apple meme.. this is awesome. i cant believe how big this video has gotten ever since it first became a meme, over a decade ago. i remember it on flipnote hatena and niconico growing up
Amazing as ever 🔥🔥🔥🔥🔥
Being a fan of this song and of your channel, I never expected this crossover, but definitely needed it!
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.
(Wild notification arrives) Yeah! New Sebastian Lague video!... ooh nooo
He did it. The madman did it.
This is the first time that I've actually watched an entire "Bad Apple but it's ____" video, well done!
GOD DAMN THIS LOOKS SICK AS HELL!
I like how the balls go out of bounds and then back in other shape.
Not what I expected from you, but not complaining. Can't wait to see when this is the most popular video on your channel.
Man, the number of extra details you added in... This wasn't just "copy paste binary video into fluid sim". You fine tuned some of this incredibly. Bravo.
I love how when it snaps into the white background parts the liquid just explodes
This may not be the most creative Way I've seen Bad Apple be played yet, but it's certainly a very cool-looking one! Usually I chuckle at whatever Tech was used for a Moment and then don't bother watching much longer. But this was actually really interesting to observe! Visually stunning!
He has actually lost the plot
Didn't even realize this was a Sebastian Lague video until I scrolled down to comment. This is incredible!
Sebastian, for you, yes I will flood my feed with Bad Apple adaptations by watching, liking, and engaging.
Good day when Sebastian posts
It is a shame that the last scene is missing a character due to the fluid not going to them but this is otherwise fantastic!
Oh my god. This actually gave me goosebumps, the visuals are so stunning.
I think this is the start of a new CZcams trend, that was SO AWESOME