520 likes | 723 Views
Image Synthesis. Basics of global illumination. Global illumination. Global illumination. Photorealistic image synthesis. Photorealistic image synthesis. Photorealistic image synthesis. Photorealistic image synthesis. Radiometric quantities. Strahlungsenergie: radiant energy
E N D
Image Synthesis Basics of global illumination
Radiometric quantities Strahlungsenergie: radiant energy Qin Joule [J] Strahlungsleistung oder -fluss: radiant fluxin Watt [W=J/s] Einfallende Flussdichte: irradiance (incident) power per area in [W/m2] ausgehende Flussdichte: radiosity (radiant exitance)power per area in [W/m2]
Radiometric quantities Strahlungsintensitätpower per solid angle in [W/sr]
d N dA dN dA Strahldichte: Radiance Combination of flux and intensity Strahldichte = Radiance Central quantity in physics based images synthesis Units: [W/(m2sr)] Power per unit solid angle per projected unit area
Radiance Relation between irradiance and radiance
BRDF BRDF Bidirectional reflection distribution function Proportionality constant fr(i ,x, r ) [1/sr]
Reflection equation Differential reflected radiance from incoming radiance using BRDF Integration over all directions Integral equation for one unknown based on relation between Li(i) and Lr(r)
Radiosity Radiosity equation Form factors Solution methods
Solving the rendering equation • Monte-Carlo techniques • See course Computer Graphics • Finite-Elemente techniques • Radiosity technique • Projection of equations with infinite dimension onto functions space with finite dimension • Results in a linear system of equations • Efficient for smooth illumination and reflection
Considerations Subdivision of the scene into planar patches Diffuse Reflection (Lambertian reflector)
N Li Lr BRDF: Diffuse Reflection Radiosity and reflectance from radiance we get
y x Continuous radiosity equation From rendering equation Assumption: diffuse Reflection Integration over outgoing directions from
y x Continuous radiosity equation Radiosity equation with new geometry factor
Classical radiosity equation Radiosity equation Assumption: surface-patches i with constant Bi(x) Averaging: integration of all Bi and division through Ai
Classical radiosity equation Classical discrete Radiosity equation Form factors Fraction of energy that leaves element i and directly arrives at element j
“Direction” of Form factors Fraction of energy that leaves element i and directly arrives at element j
Form factor computation Form factor computation methods
Pj Pi Form factors Nusselt-Analog • Geometric interpretation of form factorsfrom differential area dAi to element Aj • Proportional to the area of doubleprojection onto base of hemisphere • First projection: • Second projection: Projectiononto hemisphere Cylinder projectiononto circle area
Form factor computation • The hemicube algorithm • Fij = q Fq
z A A x Form factor computation • Hemicube method
Form factor computation Hemicube-Verfahren: Simulated Steel Mill (Feldman, Wallace)55 000 Patches, gerechnet auf VAX 8700
Smooth solution Solution yields constant radiosities per patch Solution is independent of view point Interpolate per-vertex values Gouraud-Shading for interactive walk-throughs Alternatively: Radiosity-Texture
Radiosity solution techniques • Classical radiosity (often Ei instead of Bie) Material Geometry
Radiosity solution techniques • Direct solution • Gauß elimination: matrix inversion • complexity = O(n3) for n patches
Linear system of equations For n patches: a system for n unknowns Bi n2 matrix elements from form factors Matrix elements (1-T)ij,i!=j = 0, if V(i,j) = 0
Iterative solution methods B = E + TB = E + T(E+TB) = E + TE + T2B = ... = T0E + T1E + T2E + T3E + ... = B(0) + B(1) + B(2) + B(3) + ... 2-times reflectedlight 1-times reflectedlight 0-time reflectedlight
Jacobi iteration Iteration 0
Jacobi iteration Iteration 1
Jacobi iteration Iteration 2
Jacobi iteration Iteration 3
Gathering One step gathers energy from all other patches and generates one new value Select patches consecutively independent of their contribution Physical interpretationof Gauß-Seidel
Shooting Select patches with regard to importance, distribute energy to all others, shot „unshot“ radiosity