Coding Challenge #18: 3D Fractal Trees
In this coding challenge, I'm building on top of the Space Colonization video and creating a 3D Fractal Tree, using the same algorithm, in Processing. Code: https://thecodingtrain.com/challenges/18-3d-fractal-trees
π₯ Previous video: https://youtu.be/kKT0v3qhIQY?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Next video: https://youtu.be/z86cx2A4_3E?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
πΏ Algorithmic Botany: http://algorithmicbotany.org/
π Modeling Trees with a Space Colonization Algorithm: http://algorithmicbotany.org/papers/colonization.egwnp2007.pdf
π Nature of Code class on Kadenze: https://www.kadenze.com/courses/the-nature-of-code/info
Videos:
π₯ Algorithmic Botany Track: https://thecodingtrain.com/tracks/algorithmic-botany
π΄ Coding Train Live 41: https://youtu.be/1Yo_AYzxA-o?t=2555s
Related Coding Challenges:
π #14 Recursive Fractal Trees: https://youtu.be/0jjeOYMjmDU
π #17 Space Colonization: https://youtu.be/kKT0v3qhIQY
π #77 Recursion: https://youtu.be/jPsZwrV9ld0
Timestamps:
0:00 Introducing today's topic
1:13 The algorithm
2:39 Recap: the Leaf, Branch, and Tree objects
5:30 Add a random motion to deal with leaves that are equi-distant from a branch
7:30 Map strokeWeight of branches to the index
9:39 Create random points in a sphere
10:15 Add P3D
10:55 Add a PeasyCam object
12:57 Draw ellipses at their 3D location
14:32 Grow the tree again
15:11 Add the z-coordinate to line
16:34 Discussion of creative possibilities
19:01 Adjust parameters to make the fractal look more "tree-like"
22:06 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
#fractals #generativeart #3d #p5js #javascript
Other Videos By The Coding Train
Other Statistics
Fractal Statistics For The Coding Train
At present, The Coding Train has 79,405 views spread across 1 video for Fractal, and less than an hour worth of Fractal videos were uploaded to his channel. This is less than 0.04% of the total video content that The Coding Train has uploaded to YouTube.