Coding Challenge #63.2: Texturing Cloth Simulation Part 2
In this two part challenge, I cover beginShape(), endShape(), and texture(), TRIANGLE_STRIP, QUAD_STRIP, and more. I combine these geometry functions with the Toxiclibs physics library to simulate a waving flag (with a unikitty image texture!) Code: https://thecodingtrain.com/challenges/63-texturing-cloth-simulation
Other Parts of this Challenge:
πΊ Texturing Cloth Simulation - Part 1: https://youtu.be/JunJzIe0hEo
π₯ Previous video: https://youtu.be/KakpnfDv_f0?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Next video: https://youtu.be/xXjRlEr7AGk?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
π Toxiclibs Physics Library: http://haptic-data.com/toxiclibsjs
Videos:
π Toxiclibs Verlet Physics: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6aiaU4s30tXvUmwGMlb9UUS
π΄ Live Stream Archive: https://youtu.be/xtFu66DZrBw
Related Coding Challenges:
π #20 3D Cloth with Toxiclibs: https://youtu.be/jrk_lOg_pVA
π #62 Plinko with Matter.js: https://youtu.be/KakpnfDv_f0
π #138 Angry Birds with Matter.js: https://youtu.be/TDQzoe9nslY
Timestamps:
0:00 Introduction!
1:05 Making the 3D cloth look like a flag!
6:50 Applying the force of wind to the flag!
7:42 Adding 3D noise to the wind to make it inconsistent
12:07 Rendering the flag texture as triangle strips
18:42 Texturing the image of unikitty onto the triangle strips in normal mode
22:08 Looking at a waving unikitty flag simulation and things you could do!
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
#physicsengine #texture3d #toxiclibs #cloth #simulation #processing #java
Other Videos By The Coding Train
Other Statistics
THE EDITOR Statistics For The Coding Train
At present, The Coding Train has 75,480 views spread across 2 videos for THE EDITOR, and less than an hour worth of THE EDITOR videos were uploaded to his channel. This is less than 0.07% of the total video content that The Coding Train has uploaded to YouTube.