Coding Challenge #28: Metaballs
Let's code some Metaballs (aka Isosurfaces) in Processing and how to control them using the Blob Detection methodology from my computer vision tutorial! Code: https://thecodingtrain.com/challenges/28-metaballs
πΉοΈ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/ISPozOLXW
π₯ Previous video: https://youtu.be/CKeyIbT3vXI?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Next video: https://youtu.be/bGz7mv2vD6g?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
π° Exploring Meta-balls and Isosurfaces in 2D: https://www.gamedev.net/articles/programming/graphics/exploring-metaballs-and-isosurfaces-in-2d-r2556
Videos:
π΄ Livestream Archive: https://youtu.be/3xNv10FglGc
Related Coding Challenges:
π #C4 - Coding in the Cabana Worley Noise: https://youtu.be/4066MndcyCk
π #C5 - Coding in the Cabana Marching Squares: https://youtu.be/0ZONMNUKTfU
Timestamps:
00:00 Introduction
00:46 What is an Isosurface?
01:33 Code! Working with Pixels
02:35 Make a simple Isosurface
02:58 How to make Metaballs?
04:36 Code! Create a Blob class
07:43 Make the Blob move around
09:03 Create an Array of Blobs
10:37 Color pixels using all the Blobs
12:19 Add more Blobs
13:07 Make the Blobs Rainbow colored
14:14 Example of Blob Tracking
15:12 Combine Blob Tracking with Metaballs
19:32 Making some adjustments
21:07 Other ways to Move these Metaballs
21:51 Fixing a Bug
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
#computervision #blobdetection #loadpixels #pixelanalysis #objecttracking #metaballs #isosurfaces #processing