Skip to content

OpenGL implementation of realtime hair simulation and rendering.

Notifications You must be signed in to change notification settings

wuzhixin1010/hairgl

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hairgl

OpenGL implementation of realtime hair simulation and rendering.

Inspired by NVIDIA HairWorks and AMD TressFX. Rendering multiple strands is implemented using tesselation and geometry shaders. Simulation is implemented using compute shaders. I used multiple articles and resources as references, but the most useful was this one: HairCourse.

How to export hairstyle from blender

Use the script from 'util' folder. It works with blender 2.8. You should create an object, add a hair particle system, comb the hair and then just put the name of the object and the desired export path to the top of the script.

Note: each mesh vertex should match with a hair root (just make sure that the number of hairs is equal to the number of vertices and hairs are emmited from vertices without random order).

About

OpenGL implementation of realtime hair simulation and rendering.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 84.4%
  • GLSL 9.1%
  • CMake 2.9%
  • Python 1.9%
  • C 1.7%