4.4: Particle Systems with Image Textures - The Nature of Code

4.4: Particle Systems with Image Textures - The Nature of Code

Subscribers:
1,740,000
Published on ● Video Link: https://www.youtube.com/watch?v=pUhv2CA0omA



Duration: 13:11
38,640 views
1,260


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