/Hair

Primary LanguageC++

#Hair simulator

This is a project for school - hair simulation based on particle systems. Implementation is based on papers by Muller et al. and Petrovic et al..

##Modes

  • hair is attached at one point

alt text

  • hair is attached to the "head" (top half of the sphere). For stable simulation you need higher values of s_damp.

alt text

##Simulation parameters

  • s_repulsion - specifies how strong is the repulsive force between individual hair
  • s_damp - basically density of the environment
  • s_wind - strength of the wind

alt text

##Controls

  • R - resets the simulation
  • defining HEAD in main.cpp spawns hair on the top hemisphere of the "head"

##Notes

imgui library was used for the UI. Thanks!