Coding Challenge

Veröffentlicht am: 12 Februar 2019
auf dem Kanal: The Coding Train
645,295
13k

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: https://thecodingtrain.com/challenges...

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

🎥 Previous video:    • Coding Challenge 131: Bouncing DVD Logo  
🎥 Next video:    • Coding Challenge #133: Times Tables C...  
🎥 All videos:    • Coding Challenges  

References:
💾 GitHub Issue: https://github.com/CodingTrain/Rainbo...
💻 Real-Time Fluid Dynamics for Games: http://www.dgp.toronto.edu/people/sta...
💻 MSAFluid: https://www.memo.tv/msafluid/
💻 Lily Pad: https://github.com/weymouth/lily-pad
📓 Fluid Simulation for Dummies: https://mikeash.com/pyblog/fluid-simu...

Videos:
🎥 Why Laminar Flow is AWESOME:    • Why Laminar Flow is AWESOME - Smarter...  
🎥 What DO we know about turbulence?:    • Why 5/3 is a fundamental constant for...  
🚂 Perlin Noise:    • Perlin Noise in p5.js  
🔴 Livestream Archive:    • Coding Train Live  167: Bouncing DVD ...  

Related Coding Challenges:
🚂 #24 Perlin Noise Flow Field:    • Coding Challenge #24: Perlin Noise Fl...  
🚂 #102 2D Water Ripple:    • Coding Challenge 102: 2D Water Ripple  
🚂 #103 Fire Effect:    • Coding Challenge #103: Fire Effect  

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: http://thecodingtrain.com/
👾 Share Your Creation! https://thecodingtrain.com/guides/pas...
🚩 Suggest Topics: https://github.com/CodingTrain/Sugges...
💡 GitHub: https://github.com/CodingTrain
💬 Discord:   / discord  
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
🖋️ Twitter:   / thecodingtrain  
📸 Instagram:   / the.coding.train  

🎥 Coding Challenges:    • Coding Challenges  
🎥 Intro to Programming:    • Start learning here!  

🔗 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-o...

This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecod...

#fluidsimulation #turbulentfluidflow #processing


Auf dieser Seite können Sie das Online-Video Coding Challenge mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer The Coding Train 12 Februar 2019 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 645,295 Mal angesehen und es wurde von 13 tausend den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!