← Personal Projects
C++, CUDA - university project

GPU Cloth Simulation

A particle-based cloth simulation written as CUDA kernels, using Verlet integration and three kinds of springs to hold the cloth together.

LanguageFrameworkProject
C++ CUDA University project
The brief

About the Cloth Simulation

The goal of this project was to create an NVIDIA CUDA kernel for a particle-based cloth simulation using Verlet integration. We got a framework that took care of rendering the cloth and "only" had to implement the Verlet integration using CUDA kernels.

Implementation detail

How the cloth is held together

The cloth is held together by three different kinds of springs, called structural, shear and flexion. These springs connect certain particles and are used to calculate how the cloth should deform and move.

Structural, shear and flexion springs connecting the cloth particles

The simulation kernel does the following, starting one thread for each particle:

Contact

Want to work together?

marc.kletz@kletzgames.com