
4.4: Particle Systems with Image Textures - The Nature of Code
Itβs time to expand beyond grayscale particles! In this video I demonstrate how to make a fire or smoke-like effect by using image textures and additive blending with a particle system. Code: https://thecodingtrain.com/tracks/the-nature-of-code-2/noc/4-particles/4-particle-textures
p5.js Web Editor Sketches:
πΉοΈ Texture Maker: https://editor.p5js.org/codingtrain/sketches/NS4rB1Yx-
πΉοΈ Image Texture: https://editor.p5js.org/codingtrain/sketches/TTVoNt58T
πΉοΈ Shader (WebGL): https://editor.p5js.org/codingtrain/sketches/EXZmcc4m_
π₯ Previous video: https://youtu.be/44RSr49m6LU?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
π₯ Next video: https://youtu.be/P_xJMH8VvAE?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
π₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
Videos:
π₯ Purple Rain: https://www.youtube.com/watch?v=KkyIDI6rQJI
π₯ Snowfall: https://www.youtube.com/watch?v=cl-mHFCGzYk
Timestamps:
0:00 One more particle system video!
0:57 Hopefully you'll make something neat.
1:25 Adding applyForce() to our particle class.
3:24 I've already made an image texture.
4:37 Adding the image texture to the sketch.
6:28 Adjusting the way the particles look.
7:17 Let's see if there's a way to improve performance.
8:58 blendMode(ADD)
9:53 Let's try using blendMode(ADD)!
10:36 Adding in color, yay!
11:53 Please share what you create!
12:22 What's next?
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
π Website: http://thecodingtrain.com/
πΎ Share Your Creation! https://thecodingtrain.com/guides/passenger-showcase-guide
π© Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
π‘ GitHub: https://github.com/CodingTrain
π¬ Discord: https://thecodingtrain.com/discord
βͺ Nebula: https://go.nebula.tv/codingtrain
π Membership: http://youtube.com/thecodingtrain/join
π Store: https://standard.tv/codingtrain
ποΈ Twitter: https://twitter.com/thecodingtrain
πΈ Instagram: https://www.instagram.com/the.coding.train/
π₯ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
π p5.js: https://p5js.org
π p5.js Web Editor: https://editor.p5js.org/
π Processing: https://processing.org
π Code of Conduct: https://github.com/CodingTrain/Code-of-Conduct
This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new
#forbeginners #javascript #p5js