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.
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:
- OpenCL Programming Guide: http://cg.inf.elte.hu/~gpgpu/opencl/2014-2015-2/01/OpenCL%20Programming%20Guide.pdf
Simulation:
Rendering:
- http://www.opengl-tutorial.org (zum selber lernen)
- nehe.gamedev.net (für Effekte, alt)
- https://hairrendering.wordpress.com/2010/06/23/marschner-in-nalu-demo/
- https://hairrendering.wordpress.com/tag/simulation/
- https://developer.nvidia.com/gpugems/GPUGems/gpugems_pref01.html
- https://developer.nvidia.com/gpugems/GPUGems2/gpugems2_chapter23.html