curved reflectors - the college of engineering at the university of …cs5610/lectures/curved... ·...
TRANSCRIPT
![Page 1: curved reflectors - The College of Engineering at the University of …cs5610/lectures/curved... · 2009. 11. 12. · Curved Reflectors Sphere — Near Sphere Curved Reflectors —](https://reader034.vdocuments.site/reader034/viewer/2022051921/600eddb780a8a27cb94ebe4f/html5/thumbnails/1.jpg)
1
Curved Reflectors
Bound with Sphere
![Page 2: curved reflectors - The College of Engineering at the University of …cs5610/lectures/curved... · 2009. 11. 12. · Curved Reflectors Sphere — Near Sphere Curved Reflectors —](https://reader034.vdocuments.site/reader034/viewer/2022051921/600eddb780a8a27cb94ebe4f/html5/thumbnails/2.jpg)
2
![Page 3: curved reflectors - The College of Engineering at the University of …cs5610/lectures/curved... · 2009. 11. 12. · Curved Reflectors Sphere — Near Sphere Curved Reflectors —](https://reader034.vdocuments.site/reader034/viewer/2022051921/600eddb780a8a27cb94ebe4f/html5/thumbnails/3.jpg)
3
![Page 4: curved reflectors - The College of Engineering at the University of …cs5610/lectures/curved... · 2009. 11. 12. · Curved Reflectors Sphere — Near Sphere Curved Reflectors —](https://reader034.vdocuments.site/reader034/viewer/2022051921/600eddb780a8a27cb94ebe4f/html5/thumbnails/4.jpg)
4
Algorithm1. For some vertex Q2. Find direction (how?)3. Find the (s,t) for the direction4. Use the ID to find the polygon5. Compute barycentric coords in map-space6. Use barycentric coords to approximate the
surface point by interpolating normals7. Form a plane
(intersection point, interpolated normal)8. Reflect the vertex
Issues?
• What are the issues?
![Page 5: curved reflectors - The College of Engineering at the University of …cs5610/lectures/curved... · 2009. 11. 12. · Curved Reflectors Sphere — Near Sphere Curved Reflectors —](https://reader034.vdocuments.site/reader034/viewer/2022051921/600eddb780a8a27cb94ebe4f/html5/thumbnails/5.jpg)
5
![Page 6: curved reflectors - The College of Engineering at the University of …cs5610/lectures/curved... · 2009. 11. 12. · Curved Reflectors Sphere — Near Sphere Curved Reflectors —](https://reader034.vdocuments.site/reader034/viewer/2022051921/600eddb780a8a27cb94ebe4f/html5/thumbnails/6.jpg)
6
![Page 7: curved reflectors - The College of Engineering at the University of …cs5610/lectures/curved... · 2009. 11. 12. · Curved Reflectors Sphere — Near Sphere Curved Reflectors —](https://reader034.vdocuments.site/reader034/viewer/2022051921/600eddb780a8a27cb94ebe4f/html5/thumbnails/7.jpg)
7
![Page 8: curved reflectors - The College of Engineering at the University of …cs5610/lectures/curved... · 2009. 11. 12. · Curved Reflectors Sphere — Near Sphere Curved Reflectors —](https://reader034.vdocuments.site/reader034/viewer/2022051921/600eddb780a8a27cb94ebe4f/html5/thumbnails/8.jpg)
8
![Page 9: curved reflectors - The College of Engineering at the University of …cs5610/lectures/curved... · 2009. 11. 12. · Curved Reflectors Sphere — Near Sphere Curved Reflectors —](https://reader034.vdocuments.site/reader034/viewer/2022051921/600eddb780a8a27cb94ebe4f/html5/thumbnails/9.jpg)
9
![Page 10: curved reflectors - The College of Engineering at the University of …cs5610/lectures/curved... · 2009. 11. 12. · Curved Reflectors Sphere — Near Sphere Curved Reflectors —](https://reader034.vdocuments.site/reader034/viewer/2022051921/600eddb780a8a27cb94ebe4f/html5/thumbnails/10.jpg)
10
Demo
![Page 11: curved reflectors - The College of Engineering at the University of …cs5610/lectures/curved... · 2009. 11. 12. · Curved Reflectors Sphere — Near Sphere Curved Reflectors —](https://reader034.vdocuments.site/reader034/viewer/2022051921/600eddb780a8a27cb94ebe4f/html5/thumbnails/11.jpg)
11
But lots of problems with this: circle of confusion, etc
![Page 12: curved reflectors - The College of Engineering at the University of …cs5610/lectures/curved... · 2009. 11. 12. · Curved Reflectors Sphere — Near Sphere Curved Reflectors —](https://reader034.vdocuments.site/reader034/viewer/2022051921/600eddb780a8a27cb94ebe4f/html5/thumbnails/12.jpg)
12
A GPU-driven Algorithm for Accurate Interactive Reflections
on Curved Objects
Pau Estalella, Ignacio Martin, George Drettakis, Dani Tost
Basic Algorithm
foreach frame• computeReflectedScenes()• drawNonReflectors()• drawReflectorsWithStencil()• drawReflectedScenes()
endfor
![Page 13: curved reflectors - The College of Engineering at the University of …cs5610/lectures/curved... · 2009. 11. 12. · Curved Reflectors Sphere — Near Sphere Curved Reflectors —](https://reader034.vdocuments.site/reader034/viewer/2022051921/600eddb780a8a27cb94ebe4f/html5/thumbnails/13.jpg)
13
Basic Idea
Use Search in Reflector Image
• Cache reflector vertex and reflector normalcomputeReflectedScenes{foreach reflector Ri
1. renderAndStore3DandNormalTextures()2. setUpRenderTargets()3. setUpCg()4. sendVerticesToGPU()5. copyResultToReflectedVertexArray()
Endfor }
![Page 14: curved reflectors - The College of Engineering at the University of …cs5610/lectures/curved... · 2009. 11. 12. · Curved Reflectors Sphere — Near Sphere Curved Reflectors —](https://reader034.vdocuments.site/reader034/viewer/2022051921/600eddb780a8a27cb94ebe4f/html5/thumbnails/14.jpg)
14
Foreach virtual vertex
• Search the reflector maps
• Look for N dot B = 1 (or maximum)
Results:
![Page 15: curved reflectors - The College of Engineering at the University of …cs5610/lectures/curved... · 2009. 11. 12. · Curved Reflectors Sphere — Near Sphere Curved Reflectors —](https://reader034.vdocuments.site/reader034/viewer/2022051921/600eddb780a8a27cb94ebe4f/html5/thumbnails/15.jpg)
15
Results