1 / 26

Interactive Hair Rendering Under Environment Lighting

Interactive Hair Rendering Under Environment Lighting. Valentin JANIAUT Zhong Ren, Kun Zhou, Tengfei Li, Wei Hua, Baining Guo. Hair Rendering. Hair fiber represented with lines We can draw it with glDrawArray using GL_LINES_STRIP . Basic shading model is not realistic at all.

eyal
Download Presentation

Interactive Hair Rendering Under Environment Lighting

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Interactive Hair Rendering Under Environment Lighting Valentin JANIAUT Zhong Ren, Kun Zhou, Tengfei Li, Wei Hua, Baining Guo

  2. Hair Rendering • Hair fiber represented with lines • We can draw it with glDrawArray using GL_LINES_STRIP. • Basic shading model is not realistic at all. Basic OpenGL illumination Deep Opacity Map [YUK08]

  3. Environment Lighting • Natural Illumination • No directional light Single Light Environment Lighting

  4. Spherical Function How to represent a spherical function? SPHERICAL HARMONIC

  5. Spherical Harmonic

  6. Spherical Radial Basis Function • Useful to approximate spherical function Spherical Coordinate of the center of the SRBF Number of SRBF to use for the approximation Spherical Coordinate of the Spherical Function Bandwidth of the center of the SRBF Coefficient depending of the problem SRBF with actually 5 parameters • Same idea than Fourier Series.

  7. SRBF Light • A SRBF function can represent a light in graphic rendering. Gaussian distribution. Expression of the SRBF light j. Intensity of the light j. 3D 2D Result on the sphere Gaussian distribution

  8. SRBF and Environment Lighting • We can now represent the environment lighting as the sum of the SRBF lights, as following:

  9. Outgoing Curved Intensity Diameter of the hair fiber Bidirectional scattering function Transmittance Environment Lighting

  10. Transmittance or Absorbtance Transmittance is the fraction of incident light that passes through a sample. Attenuation coefficient. • Density function: • 1 if covered by hair fiber. • 0 otherwise

  11. Bidirectional scattering function • The scattering is the deviation of the straight trajectory of a ray light due to an obstacle. • S(ωi,ωo) will be the bidirectional scattering function, similar to BRDF in surface reflectance.

  12. A scattering model. • Kajiya and Kay model [1989]

  13. Environment Lighting Approximation • Remember SRBF? It’s time to use it.

  14. Effective Transmittance • Last step of our simplification • Average attenuation of the SRBF Lighting j. • How to compute this equation?

  15. Splitting the equation Convolution of SRBF and scattering function. Transmittance

  16. Convolving SRBF and Scattering Function • Marschner et al. model [2003] With:

  17. Computing Effective Transmittance • Sampled at the SRBF center • Use of the Deep Opacity Map technique Precomputed in a table

  18. Self-shadowing Opacity Shadow Map Deep Opacity Map

  19. Deep Opacity Map Zo Z1 Z2 Z3 T z z1 z2 z3 Compute the optical depth

  20. Multiple Scattering • More realistic model. Convolution of SRBF and scattering function. Transmittance

  21. Multiple Scattering Computation • Voxelize Hair Model • For each voxel store: • ϖ: Average Fiber Direction • ν : Standard Deviation of fiber direction • ςtΤ : Perpendicular Attenuation Coefficient • Sample Tf and on a rough grid • Store as 3D texture • Hardware tri-linear interpolation

  22. Algorithm OverviewSingle Scattering • Runtime • Generate Deep Opacity Depth Map (DODM) • Construct the Summed Area Table • Sample the effective transmittance • Sample the single scattering integral • Precompute • SRBF decomposition • Single Scattering integration table

  23. Results

  24. Limitations • Runtime change of hair properties • precomputation is costly (~50 minutes) • Eccentricity of hair scattering is omitted • Additional video memory for the integral tables • 12MB for single scattering • 24MB for single + multiple scattering • no per-fiber hair property

  25. References • http://www.kunzhou.net/ (Author of the main paper, some of his slides are used in this slideshow) • http://www.cemyuksel.com/ (Author of the Deep Opacity Maps and numerous other paper about hair rendering) • Illustration on slide 10 comes from wikipedia. • http://www.cse.cuhk.edu.hk/~ttwong/papers/srbf/srbf.html Lecture about SRBF.

  26. Q/A

More Related