Coding Challenge #103: Fire Effect

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



Duration: 29:36
101,438 views
2,137


In this coding challenge, I implement a pixel-based “fire” algorithm using Processing (Java). Code: https://thecodingtrain.com/challenges/103-fire-effect

🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/NaXdkoVI

🎥 Previous video: https://youtu.be/BZUdGqeOD0w?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
🎥 Next video: https://youtu.be/dLp10CFIvxI?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
🎥 All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH

References:
📓 Fire Simulation: https://web.archive.org/web/20160418004150/http://freespace.virgin.net/hugo.elias/models/m_fire.htm
💾 Processing: http://processing.org

Videos:
🚂 What is Perlin Noise?: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6bgPNQAdxQZpJuJCjeOr7VD
🔴 Livestream Archive: https://youtu.be/PAmwKVCsg54

Related Coding Challenges:
🚂 #102 2D Water Ripple: https://youtu.be/BZUdGqeOD0w
🚂 #132 Fluid Simulation: https://youtu.be/alhpH6ECFvQ

Timestamps:
0:00 Introduction
0:39 Fire algorithm
1:11 Let's Code
2:30 Add image buffers
5:20 Implement smoothing algorithm
11:58 Add cooling map
15:57 Introduce Perlin noise field
17:58 Add noise to the cooling map
22:04 Scroll the cooling map
24:32 Experiment with graphics objects
26:18 Add mouseDragged
27:52 Conclusion

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://discord.gg/hPuGy2g
💖 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

#firesimulation #perlinnoise #processing #p5js







Tags:
programming
daniel shiffman
creative coding
coding challenge
tutorial
coding
challenges
coding train
the coding train
live stream
class
challenge
codingtrain
code challenge
fire processing
fire effect
fire simulation
fire pixels
fire algorithm