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 96,122 views spread across 3 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.