Beginner question: hair simulation

Physics APIs, Physics file formats, Maya, Max, XSI, Cinema 4D, Lightwave, Blender, thinkingParticles™ and other simulation tools, exporters and importers
Post Reply
Posts: 1
Joined: Tue Apr 10, 2012 2:13 pm

Beginner question: hair simulation

Post by Alessandro »

I'm building a C++ OpenGL based application that allows to style and model hairs. Each strand is made of n segments and I currently use verlet to constrain vertices distances.
I'd like to add some physics to the hairs (and so gravity and hair dynamics).

I'd really appreciate if you could give me some directions to follow and some suggestions about I would interface my current data structure in order to handle the SDK routines.
Posts: 13
Joined: Tue Apr 19, 2011 11:46 pm

Re: Beginner question: hair simulation

Post by saggita »

Hi Alessandro,

I just came across your post. It is more than year old and you may have already found something but I just reply to your post in case anyone is interested.

I worked on hair simulation for TressFX and the source code is released in the AMD web site as linked below. ... adeon-sdk/

It is written in DirectX 11 and hair simulation uses Direct Compute (compute shader). It can be easily translated into other languages such as OpenCL since it doesn't use any DX11 specific functions much.

Alessandro, you mentioned you were working on application for hair modeling and styling. Do you have any screenshots or video to share?

Post Reply