curved reflectors - the college of engineering at the university of …cs5610/lectures/curved... ·...
Post on 26-Sep-2020
9 Views
Preview:
TRANSCRIPT
1
Curved Reflectors
Bound with Sphere
2
3
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?
5
6
7
8
9
10
Demo
11
But lots of problems with this: circle of confusion, etc
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
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 }
14
Foreach virtual vertex
• Search the reflector maps
• Look for N dot B = 1 (or maximum)
Results:
15
Results
top related