Coding Challenge #26: 3D Supershapes
In this coding challenge, I use the "superformula" to make a 3D "supershape" in Processing. This is part 4 of a multi-part series on superformulas, superellipses and supershapes Code: https://thecodingtrain.com/challenges/26-3d-supershapes
🎥 Previous video: https://youtu.be/RkuBWEkBrZA?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
🎥 Next video: https://youtu.be/CKeyIbT3vXI?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
🎥 All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
📐 Supershapes (Superformula): http://paulbourke.net/geometry/supershape/
🏮 3D Supershapes: http://www.syedrezaali.com/3d-supershapes/
🗄 Spherical Coordinates System on Wikipedia: https://en.wikipedia.org/wiki/Spherical_coordinate_system
🎥 Peasycam: http://mrfeinberg.com/peasycam/
Videos:
🎥 Supershape track: https://thecodingtrain.com/tracks/supershapes
🔴 Live Stream Archive: https://youtu.be/m8WhMeW8jj0
Related Coding Challenges:
🚂 #25 Spherical Geometry: https://youtu.be/RkuBWEkBrZA
🚂 #112 3D Rendering with Rotation and Projection: https://youtu.be/p4Iz0XJY-Qk
🚂 #113 4D Hypercube (aka 'Tesseract'): https://youtu.be/XE3YDVdQSPo
🚂 #168 The Mandelbulb: https://youtu.be/NJCiUVGiNyA
Timestamps:
0:00 Introduction
0:44 Reza Ali's generative art
1:04 Paul Bourke's website
1:52 Constants
4:46 Supershape function
6:58 Why do we have r1 and r2?
11:23 Work on the math
13:53 Render the supershape
15:03 Try a different supershape
16:30 Add color
16:56 Animate the colors
17:53 Animate the supershape
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
#sphericalcoordinates #3dsupershape #processing