Coding Challenge #26: 3D Supershapes

Subscribers:
1,740,000
Published on ● Video Link: https://www.youtube.com/watch?v=akM4wMZIBWg



Duration: 21:35
84,783 views
1,466


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







Tags:
sphere
challenge
coding
education
mathematics (field of study)
spherical
tutorial
code
p5.js
processing
daniel shiffman
creative coding
processing tutorial
coding challenge
3d
superformula
p3d
spherical coordinates
spherical system
3d supershape
polar coordinates
reza ali
paul bourke
algorithms
superformulas