Cloth Animation Using The Compute Shader

Опубликовано: 06 Май 2026
на канале: OGLDEV
5,195
243

🔥To try everything Brilliant has to offer—free—for a full 30 days, visit https://brilliant.org/OGLDEV/ . You’ll also get 20% off an annual premium subscription.

In this video, we dive into cloth simulation using OpenGL compute shaders. By applying simple mathematical equations, we’ll achieve smooth, dynamic movement. We'll explore particle-based simulation, tackle synchronization challenges with double buffering, and optimize rendering using triangle strips for efficient memory usage. Whether you're familiar with compute shaders or just getting started, this is the perfect way to step up your real-time graphics skills! 💡🔥

Don't forget to check out our previous video on particle animation for even more insights. Let’s bring our virtual fabrics to life! -    • Particle System Using The Compute Shader /...  🏗️👕

🔗 Watch now and level up your 3D graphics game! 🚀

🔥 See the list of the books that I'm using as background information for my tutorials: https://ogldev.org/books.html
I highly recommend them for learning more about OpenGL and Vulkan. These are affiliate links so if you use them to buy any of the books the price is the same for you and I will get a small commission (thank-you! 🙏).

📚 Timecodes 📚
0:00 Intro
0:30 Sponsership message
2:04 Background
2:34 System setup
4:15 Cloth structure
6:13 Physics
9:29 The Compute Shader
13:06 The application code
16:07 Demo and problem
16:21 The normal vectors
17:45 Outro

🔥Please visit https://ogldev.org to see more of my tutorials on modern OpenGL.

🔥Link to source:
https://github.com/emeiri/ogldev/tree...
If you want to get the same version of the code that was used in the video checkout the tag 'TUT_61_CLOTH_SIM'

Feel free to comment below.

🔗Contacts:
🔹Email: [email protected]
🔹Instagram: @ogldev1
🔹Github: https://github.com/emeiri/ogldev.git
🔹TikTok -   / ogldev  
🔹Twitter: @ogldev
🔹Discord:   / discord  
🔹One time donations (Paypal): https://ogldev.org/donate.html
🔹Patreon:   / ogldev  

🙏Credits:
🔹Images by Baypicz and u_76uhw8kayc from https://Pixabay.com
🔹Videos by 3 6, Nino Souza Nino, Klaus Hausmann, Antonio, skylarvision and Larisa from
https://Pixabay.com
🔹https://upload.wikimedia.org/wikipedi...
🔹Music: “Last Cappucino in Rio” by Chris Haugen, “Step” by Anno Domini Beats and “Land of a
Loss” by Dan Lebo Lebowitz and Tone Seeker - Youtube Audio Library.
🔹Sound effects by https://zapsplat.com

Enjoy,

Etay Meiri

This video was sponsored by Brilliant

#OpenGL #ComputeShader #GameDev #3DAnimation #GraphicsProgramming