Тёмный

How I like to program Smoke 

Pezzza's Work
Подписаться 139 тыс.
Просмотров 39 тыс.
50% 1

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

Наука

Опубликовано:

 

28 май 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 107   
@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.
@thefollower1345
@thefollower1345 2 года назад
This channel truly never disappoints.
@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!
@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
@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.
@user-gq7sv9tf1m
@user-gq7sv9tf1m 2 года назад
Amazing video! I like how you abstracted away from the code
@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 :)
@starship9874
@starship9874 2 года назад
Awesome, I really hope you do more videos where you explain stuff!
@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 ヽ(✿゚▽゚)ノ
@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!
@nemooverdrive760
@nemooverdrive760 2 года назад
The break down of the whole process was interesting. I didn't know you could program smoke so cleverly
@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
@sergodobro2569
@sergodobro2569 Год назад
I liked it, it shows how the idea and result is born!
@user-zi1rf4il3q
@user-zi1rf4il3q 2 года назад
Yo man watching you mb an half of year, cool stuff
@yell9140
@yell9140 2 года назад
Keep up the good work Pezzza.
@axlvc509
@axlvc509 2 года назад
This looks great!
@______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.
@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!
@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!
@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.
@MourningRyze
@MourningRyze 2 года назад
Another great video as always :)
@mayrhofermanuel6332
@mayrhofermanuel6332 2 года назад
Amazing! Nicely done!
@FriedMonkey362
@FriedMonkey362 Год назад
My mind is blown, you keep amazing me
@frosty7674
@frosty7674 2 года назад
We need more like this
@dimarichmain
@dimarichmain 2 года назад
I like how it feels like a true gas simulations while it's not.
@truyerroe
@truyerroe Год назад
thx for the idea! i have coded it in scratch now :))
@yahia1355
@yahia1355 2 года назад
this is so beautiful !
@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
@dandymcgee
@dandymcgee 2 года назад
particle systems are always fun
@pyroblasted
@pyroblasted 2 года назад
This. Is. Amazing!
@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?
@niccy266
@niccy266 2 года назад
That was beautiful
@bigmistqke
@bigmistqke Год назад
Very satisfying
@vvcaw
@vvcaw 2 года назад
Awesome stuff!
@niloytesla
@niloytesla Год назад
beautiful!
@RickoCraft
@RickoCraft 2 года назад
Best "universal" tutorial ever
@Grgrqr
@Grgrqr 2 года назад
I had no idea how these things worked before haha I just thought they were very small particles
@ChrisFotosMusic
@ChrisFotosMusic Год назад
I read the title "I like to program how I smoke"
@dydierripe5611
@dydierripe5611 2 года назад
poggers
@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.
@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
@TreeFrogOnATree
@TreeFrogOnATree 2 года назад
Ahh, good ol' SFML :D
@rang3r0wnin
@rang3r0wnin 2 года назад
This looks amazing, but i need much more ant war in my life!
@lagadeno965
@lagadeno965 2 года назад
Bro can u tell me what library did u use to code this and where can I learn this stuff
@kg3217
@kg3217 2 года назад
That felt like Holi + Diwali 😁
@h989l
@h989l 9 месяцев назад
are you adding friction to diffused those particles?
@user-yq1fs7ok6m
@user-yq1fs7ok6m 2 года назад
Wow thanks!
@MrBajaJunky
@MrBajaJunky 2 года назад
What does it mean to add texture?
@xandermcguire8267
@xandermcguire8267 2 года назад
you should make it so the particles slightly collide with each other
@Djellowman
@Djellowman Год назад
cool!
@AlienLogic775
@AlienLogic775 2 года назад
Why not white noise for the texture? For performance reasons?
@masynchin
@masynchin 2 года назад
Where do you found background sound?
@turdle2767
@turdle2767 2 года назад
ay yo pizza, are ur ants gonna be grenadiers soon?
@suaeb175
@suaeb175 2 года назад
Nice
@chifodic6758
@chifodic6758 Год назад
this impressive shit
@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
@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.
@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
@niccy266
@niccy266 2 года назад
7th. Love your work!
@SCPokSecondaccound
@SCPokSecondaccound 9 месяцев назад
Now make it more like mustard😏
@eigentensor
@eigentensor 2 года назад
Cool video! I don't think that's what amortised means though.
@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?
@whermanntx
@whermanntx Год назад
One more step on your smoke, add physics so smoke can push other smoke, like a fluid would.
@alpers.2123
@alpers.2123 2 года назад
Add turbulence
@DsiakMondala
@DsiakMondala 2 года назад
bruh
@khatharrmalkavian3306
@khatharrmalkavian3306 2 года назад
Most of this could be offloaded to a shader. I mean, not in SFML, but...
@vinvic1578
@vinvic1578 2 года назад
What's SFML?
@hexagon8899
@hexagon8899 2 года назад
read as “how i smoke”
@MsDheeraj-id2if
@MsDheeraj-id2if 6 дней назад
Actually is it possible to do in C?
@PezzzasWork
@PezzzasWork 6 дней назад
Yes sure! Why not?
@MsDheeraj-id2if
@MsDheeraj-id2if 2 дня назад
Okay,
@MsDheeraj-id2if
@MsDheeraj-id2if 2 дня назад
I am actually thinking of implementing small simulation of ur codes in cuda,
@jacobweinstein9136
@jacobweinstein9136 2 года назад
Who else is watching this while smoking
@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.
@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
Просмотров 204 тыс.
How Particle Life emerges from simplicity
10:16
Просмотров 317 тыс.
I Made an Entire Game from Particle Physics
9:01
Просмотров 453 тыс.
Turning bugs into Art
7:43
Просмотров 193 тыс.
Evolving AIs - Predator vs Prey, who will win?
12:15
Просмотров 2,8 млн
Realtime 2D Gravity Simulation
12:31
Просмотров 401 тыс.
Real time Fire Simulation
7:23
Просмотров 153 тыс.
AIs learn to WALK
20:21
Просмотров 49 тыс.
Particle Life - A Game of Life Made of Particles
3:30
Просмотров 340 тыс.
Nice bug
3:07
Просмотров 989 тыс.