c0rvus-ix / HairSim

Simulation of hair on the GPU

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hair simulation

This is a hair simulation project. The physics is implemented in OpenCL and the rendering is done with OpenGL.

Implementation

Physics simulation

The hairs will be simulated as dots connected with links. The initial state of the vertices can be easily be created as a 3d array of vertices with each vertex having only two links.

Initial state of the vertices

OpenCL

For the physics part a ICD is requred that supports a graphics card. One graphics card is requred to run the program, but the manufacturer is not important. No OpenCL extensions are used.

OpenGL

Resourcen:

Simulation:

Rendering:

About

Simulation of hair on the GPU


Languages

Language:C 96.2%Language:C++ 3.7%Language:Objective-C 0.2%Language:GLSL 0.0%Language:Batchfile 0.0%