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