This demo has been made in C++ and SFML. Github github.com/johnBuffer/Smoke 00:00 Intro 00:16 Particles Motion 00:53 Particles Transformations 02:15 Explosions 02:40 Examples 03:36 Ending
Пікірлер: 107
@thefollower13452 жыл бұрын
This channel truly never disappoints.
@phreshmints2 жыл бұрын
beautiful, i love how you show the development step by step
@gimmethedata42562 жыл бұрын
yeah I do too, it really does show how to break down such a problem.
@Brigtzen2 жыл бұрын
1:42 wait so these are actually just rotating boxes underneath the textures?! My mind is *smoked*
@Anvilshock Жыл бұрын
Always has been. *_points gun_*
@niceguy6384 Жыл бұрын
@@Anvilshock 🤣🤣🤣
@IlSharmouta2 жыл бұрын
Looks like the colors are multiplying. Making color overlays additive would make it look real nice, especially for the explosions. Awesome stuff. Kids these days take particle systems and all their parameters for granted (myself included)
@bubbleboy821 Жыл бұрын
I was thinking collision but that may be a simpler solution
@alystair2 жыл бұрын
Could make things more dynamic by having an ambient temperature value and the a second value for the particle stream to change the stream's added vertical motion. Also wonder if allowing particles to 'push' each other in a limited way could make it feel more 'real'. Neat!
@unknown-re9vv2 жыл бұрын
Great video, I like how you kept it simple and clear. I’m still a beginner at programming so it’s helpful to see how to approach a problem and break it down into smaller steps. Keep going man!
@jesper96222 жыл бұрын
Such an underrated video. Simply explained and beautiful visuals.
@cvdbdo94712 жыл бұрын
Your work and step by step process is always inspiring
@frosty76742 жыл бұрын
Wow man, you theoretically made a tutorial I love it!! I was wondering of making a particle system, this helps :)
@UmzGames2 жыл бұрын
Incredible! This is really brilliant, such a simple explanation, we can apply this to any language and any engine.
@Tarou90002 жыл бұрын
Yes, i did it on scratch, lua is next
@rashid.harvey Жыл бұрын
Absolutely amazing work. Brought the idea perfectly to the point by splitting it up into the individual relevant pieces
@Khether00012 жыл бұрын
These are looking VERY good!!! I think there is a sweet spot when you are scaling each particle at a certain speed compared with the speed they are moving, imagine you have a sphere on each of the planes of a given particle, the ones on the side facing outside are resisting the atmosphere whereas the ones facing the inner side are expanding but also being "left behind" (like if you throw a ball forwards and another backwards on a moving car), so the particles may be moving too fast in the beginning and the scaling seems a little to slow for that (I think that may be it)... but that's such minute tweaking, this is looking VERY GOOD, and thanks for sharing your process!
@user-zi1rf4il3q2 жыл бұрын
Yo man watching you mb an half of year, cool stuff
@user-gq7sv9tf1m2 жыл бұрын
Amazing video! I like how you abstracted away from the code
@starship98742 жыл бұрын
Awesome, I really hope you do more videos where you explain stuff!
@nemooverdrive7602 жыл бұрын
The break down of the whole process was interesting. I didn't know you could program smoke so cleverly
@sergodobro2569 Жыл бұрын
I liked it, it shows how the idea and result is born!
@yell91402 жыл бұрын
Keep up the good work Pezzza.
@axlvc5092 жыл бұрын
This looks great!
@TheDroidsb Жыл бұрын
I ended up using this technique to implement smoke in a project of mine! It looked super good! Thanks for the tutorial :D
@PezzzasWork Жыл бұрын
I'm glad it helped!
@grieljis41722 жыл бұрын
Wow very nice ! But how did you add this texture, its so smooth and beautifull when added
@Piokoxer Жыл бұрын
you make it look so simple!
@crazyguys79232 жыл бұрын
Absolutely brilliant way to name the video, this isn't necessarily "the correct way," it's just the way I like to do it
@mayrhofermanuel63322 жыл бұрын
Amazing! Nicely done!
@frosty76742 жыл бұрын
We need more like this
@MourningRyze2 жыл бұрын
Another great video as always :)
@FriedMonkey362 Жыл бұрын
My mind is blown, you keep amazing me
@yahia13552 жыл бұрын
this is so beautiful !
@deltha_the_1st Жыл бұрын
Salut Pezzza, je voudrais te dire que ton travail m'impressionne, et sachant qye je souhaite me lancer dans la programation,tu me donne toutes les bonnes clés,merci!
@tyrendel Жыл бұрын
Thanks a lot for sharing, the result is really nice! Have you tried making the particles rotate depending on their position from the output? It could give a rocket exhaust effect
@______3732 жыл бұрын
I expected this. If I was going to make some smoke I would do exactly this. But anyways looks very cool. Add collisions and it will be perfect for a game.
@truyerroe Жыл бұрын
thx for the idea! i have coded it in scratch now :))
@dradex9562 Жыл бұрын
Thank you, this helped me out in creating my own custom particle emitter and it looks way better than the default one. Can you make a video on creating explosions? Like actual real-looking ones?
@bigmistqke2 жыл бұрын
Very satisfying
@dydierripe56112 жыл бұрын
poggers
@niloytesla Жыл бұрын
beautiful!
@niccy2662 жыл бұрын
That was beautiful
@penevsvagina2 жыл бұрын
Omg this is very epic, I want to make things like this but I'm a beginner. This is very impressive!!
@IlSharmouta2 жыл бұрын
The Unity game engine has a crazy robust participle system and you can sit and play around with parameters for hours. Big recommend. (sorry pezzza if this steps on your toes or anything like that)
@salmon44022 жыл бұрын
You should try it! The video documents the steps very neatly, and it'll be good practice implementing things.
@pyroblasted2 жыл бұрын
This. Is. Amazing!
@Brigtzen2 жыл бұрын
0:04 Smoke 0:17 Motion 0:55 Transformations 2:16 Create explosions 2:43 Examples 3:38 Thanks for watcing! (A little firework/smoke show)
@Grgrqr2 жыл бұрын
Thanks
@Brigtzen2 жыл бұрын
@@Grgrqr ヽ(✿゚▽゚)ノ
@vvcaw2 жыл бұрын
Awesome stuff!
@dandymcgee2 жыл бұрын
particle systems are always fun
@dhg70892 жыл бұрын
Man i love it
@DogeisCut2 жыл бұрын
This is really cool but how did you make the texture?
@shanewalsch2 жыл бұрын
Really cool
@RickoCraft2 жыл бұрын
Best "universal" tutorial ever
@dimarichmain2 жыл бұрын
I like how it feels like a true gas simulations while it's not.
@TreeFrogOnATree2 жыл бұрын
Ahh, good ol' SFML :D
@Djellowman Жыл бұрын
cool!
@user-yq1fs7ok6m2 жыл бұрын
Wow thanks!
@MrBajaJunky2 жыл бұрын
What does it mean to add texture?
@lagadeno9652 жыл бұрын
Bro can u tell me what library did u use to code this and where can I learn this stuff
@masynchin2 жыл бұрын
Where do you found background sound?
@h989l9 ай бұрын
are you adding friction to diffused those particles?
@AlienLogic7752 жыл бұрын
Why not white noise for the texture? For performance reasons?
@suaeb1752 жыл бұрын
Nice
@rang3r0wnin2 жыл бұрын
This looks amazing, but i need much more ant war in my life!
@Grgrqr2 жыл бұрын
I had no idea how these things worked before haha I just thought they were very small particles
@kg32172 жыл бұрын
That felt like Holi + Diwali 😁
@davidmurphy563 Жыл бұрын
Lovely, I take it "add texture" was an image. I find code a nice perlin works well if you combine it with a voronoi.
@chifodic6758 Жыл бұрын
this impressive shit
@ariseyhun20852 жыл бұрын
Is nice, I like
@angelo.strand Жыл бұрын
Is this the smoke used in your drone video?
@PezzzasWork Жыл бұрын
Yes, it’s exactly the same process
@angelo.strand Жыл бұрын
@@PezzzasWork ooo that’s really cool
@turdle27672 жыл бұрын
ay yo pizza, are ur ants gonna be grenadiers soon?
@xandermcguire82672 жыл бұрын
you should make it so the particles slightly collide with each other
@ChrisFotosMusic Жыл бұрын
I read the title "I like to program how I smoke"
@MYP.3UK2 жыл бұрын
really beautiful, but is it possible to do the same in 3D?
@alpers.21232 жыл бұрын
polyhedrons with transparent texture?
@Gutagi2 жыл бұрын
@@alpers.2123 or flat planes with different angles, might work even better
@niccy2662 жыл бұрын
7th. Love your work!
@vinvic15782 жыл бұрын
What's SFML?
@devzone59242 жыл бұрын
How did you texture the smoke?
@PezzzasWork2 жыл бұрын
Texturing step is just swap white rectangles with static smoke sprite
@devzone59242 жыл бұрын
@@PezzzasWork Thank you! Do you have a link for the sprite?
@SCPokSecondaccound9 ай бұрын
Now make it more like mustard😏
@nicolaicushnir93282 жыл бұрын
It would be great, dude, if you make a Christmas tree in C ++ that flashes with different colors like in real life. As for the video, it is not bad, there is something to work on. At the end I want to say I liked this video.
@eigentensor2 жыл бұрын
Cool video! I don't think that's what amortised means though.
@puppergump41172 жыл бұрын
At first I thought it would be complicated, but all you did was throw some sprites around and change them up. I guess I should stop trying to break problems down from what they look like, and instead just find out how they act.
@khatharrmalkavian33062 жыл бұрын
Most of this could be offloaded to a shader. I mean, not in SFML, but...
@Mspalebluedot-id2if16 күн бұрын
Actually is it possible to do in C?
@PezzzasWork16 күн бұрын
Yes sure! Why not?
@Mspalebluedot-id2if12 күн бұрын
Okay,
@Mspalebluedot-id2if12 күн бұрын
I am actually thinking of implementing small simulation of ur codes in cuda,
@alpers.21232 жыл бұрын
Add turbulence
@DsiakMondala2 жыл бұрын
bruh
@whermanntx Жыл бұрын
One more step on your smoke, add physics so smoke can push other smoke, like a fluid would.
@hexagon88992 жыл бұрын
read as “how i smoke”
@jacobweinstein91362 жыл бұрын
Who else is watching this while smoking
@match_mc1142 жыл бұрын
That "add texture" step was like 99% of the work... I wish that was explained.
@PezzzasWork2 жыл бұрын
It indeed does a lot but there is nothing special to explain, I just swapped the white rectangles for static textured sprites
@match_mc1142 жыл бұрын
@@PezzzasWork Are they still rectangles? The whole step by step process was awesome, it just seemed like that last one carried the team.