Page 1 of 1

Beginner question: hair simulation

Posted: Tue Apr 10, 2012 2:19 pm
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.
Thanks

Re: Beginner question: hair simulation

Posted: Thu Jun 27, 2013 5:28 pm
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.

http://developer.amd.com/tools-and-sdks ... 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?

Thanks,