1 / 74

Ray Tracing News

Ray Tracing News. http://www.raytracingnews.org/ RTNv19n1: September 30, 2006 Introduction Ray Tracing Roundup Notes on Efficient Ray Tracing Ray-Box Sorting BVHs and Memory Coherence “So long and thanks for all the fish...” Ray/Box Intersection Optimization SIGGRAPH 2006 Report.

misae
Download Presentation

Ray Tracing News

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. Ray Tracing News • http://www.raytracingnews.org/ • RTNv19n1: September 30, 2006 • Introduction • Ray Tracing Roundup • Notes on Efficient Ray Tracing • Ray-Box Sorting • BVHs and Memory Coherence • “So long and thanks for all the fish...” • Ray/Box Intersection Optimization • SIGGRAPH 2006 Report

  2. praktische inleiding over beschikbare software Ray TracingenGlobal Illumination

  3. Ray Tracer from scratch • practicum CG1 • leerrijk, maar tijdrovend • matrix, vector, kleur, afbeelding, camera, straal, puntlicht, driehoek, ... • ontwerpkeuzes

  4. Beschikbare renderers • “standing on the shoulders of giants” • doel • hobby ray tracer met beperkte fysische basis • bv. POV-Ray • academische, fysisch gebaseerde global illumination renderer • bv. PBRT, RenderPark, Radiance, … • basisimplementatie • meer mogelijkheden dan je zelf zou schrijven • uitbreidbaarheid

  5. Overzicht • Ray Tracing • korte herhaling van CG1 • voorbeeld: POV-Ray • Global Illumination • korte herhaling van CG1, meer info: zie CG2 • voorbeeld: PBRT

  6. Ray Tracing herhaling • camera • pixelrooster • scène scène camera pixelrooster

  7. Ray Tracing herhaling • primaire straal

  8. Ray Tracing herhaling • primaire straal • raakpunt • schaduw en shading…

  9. Ray Tracing herhaling • schaduw • schaduwstraal van raakpunt naar lichtbron • raakt ander object?raakpunt niet belicht

  10. Ray Tracing herhaling • diffuus • cosinus (N.L) • speculair • spiegeling(N.V) = (N.R) • recursie • Phong (glans) • cosinus (R.V) of (N.H) • exponent n

  11. Ray Tracing herhaling • recursie • reflectie • refractie • wet van Snellius normaal = buiten lucht (n=1) glas (n=1,5) oppervlak

  12. Ray Tracing herhaling • ray tracingà la Whitted 1980 • uitbreidingen • oppervlaktelichtbron(zachte schaduwen) • participerende media • hacks • ambiënt licht

  13. POV-Ray (www.povray.org) • hobby, artistiek, andere terminologie • brede basisimplementatie • uitbreidbaarheid is geen doel • praktische documentatie en tutorials • standaard ray tracing

  14. POV-Ray • fotorealisme mogelijk door te tweaken • Internet Ray Tracing Competition (www.irtc.org) • niet fysisch gebaseerd, geen global illumination • radiosity, photon map uitbreidingen

  15. POV-Ray syntax camera { perspective location <0.0, 0.5,-8.0> look_at <0.0, 0.0, 0.0> up <0.0, 1.0, 0.0> angle 50 }

  16. POV-Ray syntax light_source { <-30,30,-30> // positie color rgb <1.0, 1.0, 1.0> pointlight } light_source { <-30,30,-30> // positie color rgb <1.0, 1.0, 1.0> area_light <8, 0, 0> <0, 0, 8> // afmetingen 8, 8 // stratificatie jitter }

  17. POV-Ray syntax plane { y, -1 // vlak y=-1 } box { <-3,-1,-1> <-1, 1, 1> // hoekpunten } sphere { <0.0, 0.0, 0.0>, 1 // center, straal } cone { <2,1,0>, 0.0, // punt op as, straal 0 <2,-1,0>, 1.0 // punt op as, straal 1 }

  18. POV-Ray syntax mesh { triangle { <0,0,0>, <0,1,0>, <1,1,0> // hoeken uv_vectors <0,0>, <0,1>, <1,1> // textuurcoordinaten } smooth_triangle { <0,0,0>, <0,0,1>, // hoek, normaal <1,0,0>, <0,1,1>, // hoek, normaal <1,1,0>, <1,1,1> // hoek, normaal uv_vectors <0,0>, <0,1>, <1,1> // textuurcoordinaten } }

  19. POV-Ray syntax texture { // materiaal pigment { // basiskleur // ... } normal { // bump map // ... } finish { // glans // ... } }

  20. POV-Ray syntax pigment { color rgb <1.0,0.0,0.0> } pigment { image_map { jpeg "filename.jpg" } }

  21. POV-Ray syntax normal { bumps 0.5 // proceduraal } normal { bump_map { gif "filename.gif" } }

  22. POV-Ray syntax finish { phong 0.9 phong_size 60 // 1 - 250 // of specular 0.9 roughness 0.02 // 0.0005 – 1 reflection 0.8 // modifiers metallic // kleur highlight conserve_energy }

  23. POV-Ray

  24. POV-Ray • uitbreidbaarheid? • C++ • redelijk leesbare code • weinig structuur • code aanpassen • functionaliteit toevoegen?

  25. Overzicht • Ray Tracing • korte herhaling van CG1 • voorbeeld: POV-Ray • Global Illumination • korte herhaling van CG1, meer info: zie CG2 • voorbeeld: PBRT

  26. Global Illumination • diffuse interreflecties

  27. Global Illumination • diffuse interreflecties • glossy reflecties

  28. Global Illumination • diffuse interreflecties • glossy reflecties • caustics

  29. Global Illumination • diffuse interreflecties • glossy reflecties • caustics • fysisch correct

  30. Global Illumination radiosity + stochastic ray tracing • diffuse interreflecties • glossy reflecties • caustics • fysisch correct radiosity ray tracing foto

  31. Global Illumination herhaling

  32. Global Illumination herhaling

  33. Global Illumination herhaling • directe/indirecte belichting samen

  34. Global Illumination herhaling • directe/indirecte belichting apart

  35. Global Illumination herhaling • path tracing

  36. Global Illumination herhaling • path tracing • L = ...

  37. Global Illumination herhaling • path tracing • L = ... • emissie

  38. Global Illumination herhaling • path tracing • L = ... • emissie • directe belichting

  39. Global Illumination herhaling • path tracing • L = ... • emissie • directe belichting • indirecte belichtingkomt van overal

  40. Global Illumination herhaling • path tracing • L = ... • emissie • directe belichting • indirecte belichtinguit 1 richting

  41. Global Illumination herhaling • path tracing • L = ... • emissie • directe belichting • indirecte belichtingkomt van ergens

  42. Global Illumination herhaling • path tracing • L = ... • emissie • directe belichting • indirecte belichtingrecursief

  43. Global Illumination herhaling • path tracing • L = ... • emissie • directe belichting • indirecte belichtingrecursief

  44. Global Illumination herhaling • path tracing • L = ... • emissie • directe belichting • indirecte belichtingrecursief

  45. Global Illumination herhaling • path tracing • L = ... • emissie • directe belichting • indirecte belichtingrecursief

  46. Global Illumination herhaling • path tracing • L = ... • emissie • directe belichting • indirecte belichtingrecursief

  47. Global Illumination herhaling • path tracing • L = ... • emissie • directe belichting • indirecte belichtingrecursief

  48. Global Illumination herhaling • path tracing • L = ... • emissie • directe belichting • indirecte belichtingrecursief • aantal keerper pixel

  49. Global Illumination herhaling • path tracing • in principe volledig • maar soms traag • bv. caustics

More Related