1 / 43

Recent Advances in Radiosity

Recent Advances in Radiosity. Philippe Bekaert Department of Computer Science K.U.Leuven. Global Illumination. Goal: produce images that are perceived indistinguishable from reality. Global Illumination (2). Three steps: Modelling: geometry + optical properties

errol
Download Presentation

Recent Advances in Radiosity

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. Recent Advances in Radiosity Philippe Bekaert Department of Computer Science K.U.Leuven

  2. Global Illumination • Goal: produce images that are perceived indistinguishable from reality. KV 02/10/98 T.U.Wien

  3. Global Illumination (2) • Three steps: • Modelling: geometry + optical properties • Illumination computation: stochastic ray tracing, radiosity method, … • Visualisation of the result (tone mapping, ...) KV 02/10/98 T.U.Wien

  4. Illumination computation KV 02/10/98 T.U.Wien

  5. Radiosity view-independent solution (world-space) diffuse scenes (soft shadows, colour bleeding, …) approximate solution on BREP model. time consuming ? huge storage requirements (only for simple scenes)? Ray-Tracing view-dependent solution (pixel-driven) general reflection, refraction, emission exact solution for CSG models, procedural objects, fractals, ... low storage requirements (complex scenes) reliable Radiosity vs. (MC) Ray Tracing KV 02/10/98 T.U.Wien

  6. The Radiosity Method • Scene discretised in patches i • Compute average radiosity Bi [W/m2] for each patch by solving ... • The radiosity system of equations: Bi = Ei + ri Sj FijBj reflectivity form factor KV 02/10/98 T.U.Wien

  7. The Radiosity Method(2) • Four steps: • Discretisation of the scene into patches • Form factor Fijcomputation • Solution of radiosity system of equations • Render image using computed radiosities • In practice: intertwined steps KV 02/10/98 T.U.Wien

  8. Step 1: Discretisation • Quality: • consistent enumeration of vertices • well-formed facets • non intersecting facets (shadow- and light leaks) • Constant radiosity assumption should be fulfilled (cannot be determined a priori) KV 02/10/98 T.U.Wien

  9. Discretisation (2) • Illustration: washed out shadows, light leaks KV 02/10/98 T.U.Wien

  10. Step 2: Form Factors • Fij= Fraction of power emitted by i and received by j. • Difficult double integral, numerous techniques: analytic formulae, contour integration, MC integration of deterministic quadrature rules, hemicube, MC simulation ... • Number of FF = square number of patches: storage? KV 02/10/98 T.U.Wien

  11. Step 3: Radiosity system solution • Iterative methods (Jacobi, Gauss-Seidel, Southwell =progressive radiosity) • Monte Carlo simulation • Not so problematic. KV 02/10/98 T.U.Wien

  12. Step 4: Rendering • Not so problematic either Using graphics hardware Ray-tracing second pass KV 02/10/98 T.U.Wien

  13. Summary of problems: • Discretisation (meshing) quality • Need for a priori adaptive meshing • Form factor storage • Form factor computation time • Reliability: numerical errors KV 02/10/98 T.U.Wien

  14. Solutions • Discontinuity meshing • Hierarchical Refinement • Clustering • Implicit instead of explicit form factor computation by MC simulation • Higher order approximations instead of constant • View potential driven “focussing” of the computations KV 02/10/98 T.U.Wien

  15. Hierarchical Refinement • Goal: • automatic adaptive discretisation • reduction of the number of form factors through multiresolution representation of radiosity. • Example: KV 02/10/98 T.U.Wien

  16. KV 02/10/98 T.U.Wien

  17. KV 02/10/98 T.U.Wien

  18. oracle says: “Refine!” oracle says: “OK!” Recursive refinement in HR. KV 02/10/98 T.U.Wien

  19. Hierarchical refinement • Questions: • Q1: When to refine? • Q2: If required, how to carry out refinement? • Q3: How to keep the multilevel representation consistent? • Q4: Relation between link error threshold and total error? KV 02/10/98 T.U.Wien

  20. Q1: When to refine? • When form factor too large. • Based on error estimates: total error = approximation error + propagated error. KV 02/10/98 T.U.Wien

  21. Q2: How to refine? • Which element: receiver or source? • The largest of the two • The one contributing the largest error • How to subdivide the chosen element? • Regular quad-tree subdivision • Along discontinuity lines • Alternative: Increase approximation order. KV 02/10/98 T.U.Wien

  22. Q3: Keeping the MRR consistent • Goal: obtain new consistent representation of total radiosity on all levels? • push: propagate radiosity top-down • pull: average radiosity bottom-up. KV 02/10/98 T.U.Wien

  23. Elementary push-pull

  24. Q4: link error versus total error? • Link error threshold can be computed in order to give same total error everywhere. • Experiment: measured (total) error versus desired accuracy: KV 02/10/98 T.U.Wien

  25. Remaining problems: • Storage requirements: still several 100 bytes per element. • Computational error on form factors and error estimates. • Solution: avoid explicit form factor computation and storage!!! KV 02/10/98 T.U.Wien

  26. Monte Carlo Radiosity • Simulate path of photons through environment. Score yields radiosity. • Form factors do not need to be computed explcitely. KV 02/10/98 T.U.Wien

  27. Which is best?? • Breadth first versus depth first • Local versus global lines. • Continuous versus discrete: • discrete = warp particle to new position on hit patch. • Influence of random number generator (MC versus QMC) ???

  28. 1) Breadth-first versus depth-first Depth-first (particle tracing) Breadth-first (WDRS)

  29. Breadth-first RW (1) Initial power distribution new power distribution Initial ray set

  30. Breadth-first RW (2) modified power distribution extra rays (same ray power) new power distribution

  31. Breath-first RW (3) extra rays (same ray power as before)

  32. Breath-first RW (4) extra rays (same ray power as before)

  33. Depth-first RW (1)

  34. Breadth-first vs depth-first • It doesn‘t really matter. Random Halton

  35. 2) Local versus Global Lines • Global lines are cheaper per intersection, but local lines allow better sample distribution. Local lines Global lines (Sbert’93)

  36. Local versus Global Lines: global local random Halton

  37. 3) Continuous versus discrete Keller Continuous Halton Discrete Halton

  38. Problems of MC Radiosity • lack of automatic adaptive meshing • noise/aliasing effects • Solution: hierarchical refinement!! KV 02/10/98 T.U.Wien

  39. Hierarchical Monte Carlo Radiosity • Random walk algorithms avoiding explicit form factor computation and storage • Per sample decision what level of detail is appropriate for light transport. • Combination of wavelets and Monte Carlo.

  40. Recursive refinement in HMC. form factor sample line oracle says: “OK!” oracle says: “Refine!” KV 02/10/98 T.U.Wien

  41. Results: • Surprisingly fast first complete solutions. • Gradually improved by reducing noise • Low storage requirements (no form factor storage) • Reliable (no difficult element pairwise form factor integration)

  42. 5min. 9min. 10min. KV 02/10/98 T.U.Wien

  43. Conclusion • We´ve come a long way. • The way ahead is also long: • more efficient refinement + better approximations • general light transport (not only diffuse) • participating media • dynamic scenes • ... • DEMO TIME!!!

More Related