Рет қаралды 636,416
In this video, I follow Mike Ash’s guide to Fluid Simulation and port Jos Stam’s "Real-Time Fluid Dynamics for Games" algorithm and code in Processing (Java). Code: thecodingtrain.com/challenges...
🕹️ p5.js Web Editor Sketch: editor.p5js.org/codingtrain/s...
🎥 Previous video: • Coding Challenge 131: ...
🎥 Next video: • Coding Challenge #133:...
🎥 All videos: • Coding Challenges
References:
💾 GitHub Issue: github.com/CodingTrain/Rainbo...
💻 Real-Time Fluid Dynamics for Games: www.dgp.toronto.edu/people/sta...
💻 MSAFluid: www.memo.tv/msafluid/
💻 Lily Pad: github.com/weymouth/lily-pad
📓 Fluid Simulation for Dummies: mikeash.com/pyblog/fluid-simu...
Videos:
🎥 Why Laminar Flow is AWESOME: • Why Laminar Flow is AW...
🎥 What DO we know about turbulence?: • Why 5/3 is a fundament...
🚂 Perlin Noise: • Perlin Noise in p5.js
🔴 Livestream Archive: • Coding Train Live 167...
Related Coding Challenges:
🚂 #24 Perlin Noise Flow Field: • Coding Challenge #24: ...
🚂 #102 2D Water Ripple: • Coding Challenge 102: ...
🚂 #103 Fire Effect: • Coding Challenge #103:...
Timestamps:
0:00 Introduction
0:59 Topic suggestion from deardanielxd
3:30 Mike Ash's "Fluid For Dummies" thesis
6:42 Incompressible fluid
8:45 Velocity field
9:12 Density of dye
11:14 Port the code to Processing
15:47 addDensity() function
19:34 Diffuse
23:35 Project
25:52 Advect
30:17 Set bounds
33:05 Mirror velocity in edge layers
36:19 Time set function
38:58 Render the density
44:10 Add fade
46:40 Add perlin noise
48:00 Add Pvector
50:35 Recap and next steps
52:22 Adjustments to code
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
🚂 Website: thecodingtrain.com/
👾 Share Your Creation! thecodingtrain.com/guides/pas...
🚩 Suggest Topics: github.com/CodingTrain/Sugges...
💡 GitHub: github.com/CodingTrain
💬 Discord: / discord
💖 Membership: kzfaq.infojoin
🛒 Store: standard.tv/codingtrain
🖋️ Twitter: / thecodingtrain
📸 Instagram: / the.coding.train
🎥 Coding Challenges: • Coding Challenges
🎥 Intro to Programming: • Start learning here!
🔗 p5.js: p5js.org
🔗 p5.js Web Editor: editor.p5js.org/
🔗 Processing: processing.org
📄 Code of Conduct: github.com/CodingTrain/Code-o...
This description was auto-generated. If you see a problem, please open an issue: github.com/CodingTrain/thecod...
#fluidsimulation #turbulentfluidflow #processing