How I like to program Smoke

  Рет қаралды 39,388

Pezzza's Work

Pezzza's Work

Күн бұрын

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
@thefollower1345
@thefollower1345 2 жыл бұрын
This channel truly never disappoints.
@phreshmints
@phreshmints 2 жыл бұрын
beautiful, i love how you show the development step by step
@gimmethedata4256
@gimmethedata4256 2 жыл бұрын
yeah I do too, it really does show how to break down such a problem.
@Brigtzen
@Brigtzen 2 жыл бұрын
1:42 wait so these are actually just rotating boxes underneath the textures?! My mind is *smoked*
@Anvilshock
@Anvilshock Жыл бұрын
Always has been. *_points gun_*
@niceguy6384
@niceguy6384 Жыл бұрын
​@@Anvilshock 🤣🤣🤣
@IlSharmouta
@IlSharmouta 2 жыл бұрын
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
@bubbleboy821 Жыл бұрын
I was thinking collision but that may be a simpler solution
@alystair
@alystair 2 жыл бұрын
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-re9vv
@unknown-re9vv 2 жыл бұрын
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!
@jesper9622
@jesper9622 2 жыл бұрын
Such an underrated video. Simply explained and beautiful visuals.
@cvdbdo9471
@cvdbdo9471 2 жыл бұрын
Your work and step by step process is always inspiring
@frosty7674
@frosty7674 2 жыл бұрын
Wow man, you theoretically made a tutorial I love it!! I was wondering of making a particle system, this helps :)
@UmzGames
@UmzGames 2 жыл бұрын
Incredible! This is really brilliant, such a simple explanation, we can apply this to any language and any engine.
@Tarou9000
@Tarou9000 2 жыл бұрын
Yes, i did it on scratch, lua is next
@rashid.harvey
@rashid.harvey Жыл бұрын
Absolutely amazing work. Brought the idea perfectly to the point by splitting it up into the individual relevant pieces
@Khether0001
@Khether0001 2 жыл бұрын
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-zi1rf4il3q
@user-zi1rf4il3q 2 жыл бұрын
Yo man watching you mb an half of year, cool stuff
@user-gq7sv9tf1m
@user-gq7sv9tf1m 2 жыл бұрын
Amazing video! I like how you abstracted away from the code
@starship9874
@starship9874 2 жыл бұрын
Awesome, I really hope you do more videos where you explain stuff!
@nemooverdrive760
@nemooverdrive760 2 жыл бұрын
The break down of the whole process was interesting. I didn't know you could program smoke so cleverly
@sergodobro2569
@sergodobro2569 Жыл бұрын
I liked it, it shows how the idea and result is born!
@yell9140
@yell9140 2 жыл бұрын
Keep up the good work Pezzza.
@axlvc509
@axlvc509 2 жыл бұрын
This looks great!
@TheDroidsb
@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
@PezzzasWork Жыл бұрын
I'm glad it helped!
@grieljis4172
@grieljis4172 2 жыл бұрын
Wow very nice ! But how did you add this texture, its so smooth and beautifull when added
@Piokoxer
@Piokoxer Жыл бұрын
you make it look so simple!
@crazyguys7923
@crazyguys7923 2 жыл бұрын
Absolutely brilliant way to name the video, this isn't necessarily "the correct way," it's just the way I like to do it
@mayrhofermanuel6332
@mayrhofermanuel6332 2 жыл бұрын
Amazing! Nicely done!
@frosty7674
@frosty7674 2 жыл бұрын
We need more like this
@MourningRyze
@MourningRyze 2 жыл бұрын
Another great video as always :)
@FriedMonkey362
@FriedMonkey362 Жыл бұрын
My mind is blown, you keep amazing me
@yahia1355
@yahia1355 2 жыл бұрын
this is so beautiful !
@deltha_the_1st
@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
@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
@______373
@______373 2 жыл бұрын
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
@truyerroe Жыл бұрын
thx for the idea! i have coded it in scratch now :))
@dradex9562
@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?
@bigmistqke
@bigmistqke 2 жыл бұрын
Very satisfying
@dydierripe5611
@dydierripe5611 2 жыл бұрын
poggers
@niloytesla
@niloytesla Жыл бұрын
beautiful!
@niccy266
@niccy266 2 жыл бұрын
That was beautiful
@penevsvagina
@penevsvagina 2 жыл бұрын
Omg this is very epic, I want to make things like this but I'm a beginner. This is very impressive!!
@IlSharmouta
@IlSharmouta 2 жыл бұрын
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)
@salmon4402
@salmon4402 2 жыл бұрын
You should try it! The video documents the steps very neatly, and it'll be good practice implementing things.
@pyroblasted
@pyroblasted 2 жыл бұрын
This. Is. Amazing!
@Brigtzen
@Brigtzen 2 жыл бұрын
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)
@Grgrqr
@Grgrqr 2 жыл бұрын
Thanks
@Brigtzen
@Brigtzen 2 жыл бұрын
@@Grgrqr ヽ(✿゚▽゚)ノ
@vvcaw
@vvcaw 2 жыл бұрын
Awesome stuff!
@dandymcgee
@dandymcgee 2 жыл бұрын
particle systems are always fun
@dhg7089
@dhg7089 2 жыл бұрын
Man i love it
@DogeisCut
@DogeisCut 2 жыл бұрын
This is really cool but how did you make the texture?
@shanewalsch
@shanewalsch 2 жыл бұрын
Really cool
@RickoCraft
@RickoCraft 2 жыл бұрын
Best "universal" tutorial ever
@dimarichmain
@dimarichmain 2 жыл бұрын
I like how it feels like a true gas simulations while it's not.
@TreeFrogOnATree
@TreeFrogOnATree 2 жыл бұрын
Ahh, good ol' SFML :D
@Djellowman
@Djellowman Жыл бұрын
cool!
@user-yq1fs7ok6m
@user-yq1fs7ok6m 2 жыл бұрын
Wow thanks!
@MrBajaJunky
@MrBajaJunky 2 жыл бұрын
What does it mean to add texture?
@lagadeno965
@lagadeno965 2 жыл бұрын
Bro can u tell me what library did u use to code this and where can I learn this stuff
@masynchin
@masynchin 2 жыл бұрын
Where do you found background sound?
@h989l
@h989l 9 ай бұрын
are you adding friction to diffused those particles?
@AlienLogic775
@AlienLogic775 2 жыл бұрын
Why not white noise for the texture? For performance reasons?
@suaeb175
@suaeb175 2 жыл бұрын
Nice
@rang3r0wnin
@rang3r0wnin 2 жыл бұрын
This looks amazing, but i need much more ant war in my life!
@Grgrqr
@Grgrqr 2 жыл бұрын
I had no idea how these things worked before haha I just thought they were very small particles
@kg3217
@kg3217 2 жыл бұрын
That felt like Holi + Diwali 😁
@davidmurphy563
@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
@chifodic6758 Жыл бұрын
this impressive shit
@ariseyhun2085
@ariseyhun2085 2 жыл бұрын
Is nice, I like
@angelo.strand
@angelo.strand Жыл бұрын
Is this the smoke used in your drone video?
@PezzzasWork
@PezzzasWork Жыл бұрын
Yes, it’s exactly the same process
@angelo.strand
@angelo.strand Жыл бұрын
@@PezzzasWork ooo that’s really cool
@turdle2767
@turdle2767 2 жыл бұрын
ay yo pizza, are ur ants gonna be grenadiers soon?
@xandermcguire8267
@xandermcguire8267 2 жыл бұрын
you should make it so the particles slightly collide with each other
@ChrisFotosMusic
@ChrisFotosMusic Жыл бұрын
I read the title "I like to program how I smoke"
@MYP.3UK
@MYP.3UK 2 жыл бұрын
really beautiful, but is it possible to do the same in 3D?
@alpers.2123
@alpers.2123 2 жыл бұрын
polyhedrons with transparent texture?
@Gutagi
@Gutagi 2 жыл бұрын
@@alpers.2123 or flat planes with different angles, might work even better
@niccy266
@niccy266 2 жыл бұрын
7th. Love your work!
@vinvic1578
@vinvic1578 2 жыл бұрын
What's SFML?
@devzone5924
@devzone5924 2 жыл бұрын
How did you texture the smoke?
@PezzzasWork
@PezzzasWork 2 жыл бұрын
Texturing step is just swap white rectangles with static smoke sprite
@devzone5924
@devzone5924 2 жыл бұрын
@@PezzzasWork Thank you! Do you have a link for the sprite?
@SCPokSecondaccound
@SCPokSecondaccound 9 ай бұрын
Now make it more like mustard😏
@nicolaicushnir9328
@nicolaicushnir9328 2 жыл бұрын
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.
@eigentensor
@eigentensor 2 жыл бұрын
Cool video! I don't think that's what amortised means though.
@puppergump4117
@puppergump4117 2 жыл бұрын
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.
@khatharrmalkavian3306
@khatharrmalkavian3306 2 жыл бұрын
Most of this could be offloaded to a shader. I mean, not in SFML, but...
@Mspalebluedot-id2if
@Mspalebluedot-id2if 16 күн бұрын
Actually is it possible to do in C?
@PezzzasWork
@PezzzasWork 16 күн бұрын
Yes sure! Why not?
@Mspalebluedot-id2if
@Mspalebluedot-id2if 12 күн бұрын
Okay,
@Mspalebluedot-id2if
@Mspalebluedot-id2if 12 күн бұрын
I am actually thinking of implementing small simulation of ur codes in cuda,
@alpers.2123
@alpers.2123 2 жыл бұрын
Add turbulence
@DsiakMondala
@DsiakMondala 2 жыл бұрын
bruh
@whermanntx
@whermanntx Жыл бұрын
One more step on your smoke, add physics so smoke can push other smoke, like a fluid would.
@hexagon8899
@hexagon8899 2 жыл бұрын
read as “how i smoke”
@jacobweinstein9136
@jacobweinstein9136 2 жыл бұрын
Who else is watching this while smoking
@match_mc114
@match_mc114 2 жыл бұрын
That "add texture" step was like 99% of the work... I wish that was explained.
@PezzzasWork
@PezzzasWork 2 жыл бұрын
It indeed does a lot but there is nothing special to explain, I just swapped the white rectangles for static textured sprites
@match_mc114
@match_mc114 2 жыл бұрын
@@PezzzasWork Are they still rectangles? The whole step by step process was awesome, it just seemed like that last one carried the team.
@itsdogpaw
@itsdogpaw 2 жыл бұрын
what am i doing here
@yourfutureself4327
@yourfutureself4327 Жыл бұрын
🤍💨
@FahrurRoziqin
@FahrurRoziqin Жыл бұрын
why its sounds horror
@user-px5pj7ux5k
@user-px5pj7ux5k 6 ай бұрын
fake smoke😅
C++ Ants Simulation 6, Editor
7:38
Pezzza's Work
Рет қаралды 205 М.
How to train simple AIs to balance a double pendulum
24:59
Pezzza's Work
Рет қаралды 51 М.
MOM TURNED THE NOODLES PINK😱
00:31
JULI_PROETO
Рет қаралды 24 МЛН
Training a Neural Network to operate drones using Genetic Algorithm
8:54
Real time Fire Simulation
7:23
Pezzza's Work
Рет қаралды 153 М.
Designing a Physics Engine in 5 minutes
7:37
Winterdev
Рет қаралды 147 М.
How Particle Life emerges from simplicity
10:16
Tom Mohr
Рет қаралды 322 М.
Recreating Noita's Sand Simulation in C and OpenGL | Game Engineering
10:03
OpenGL 8 Million Particles Simulation
2:15
BoyBaykiller
Рет қаралды 49 М.
Easy 2D explosion in #godot under 4 minutes
3:35
Notatea
Рет қаралды 21 М.
How to train simple AIs
12:59
Pezzza's Work
Рет қаралды 51 М.
Simple Fractal rendering
11:05
Pezzza's Work
Рет қаралды 127 М.
как спасти усилитель?
0:35
KS Customs
Рет қаралды 531 М.
Не обзор DJI Osmo Pocket 3 Creator Combo
1:00
superfirsthero
Рет қаралды 1,3 МЛН
ПРОБЛЕМА МЕХАНИЧЕСКИХ КЛАВИАТУР!🤬
0:59
Корнеич
Рет қаралды 3,7 МЛН