1 / 14

Iluminação local

Iluminação local. MC-930 Tópicos em Computação Gráfica Luiz M. G. Gonçalves. Iluminação local. Estudo de como os diferentes nmateriais refletem luz Optica Geometrica (yes:-) Ondas (not in this class) Como a BRDF f r encapsula as propriedades de reflectância de um material. Terms.

manton
Download Presentation

Iluminação local

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. Iluminação local MC-930 Tópicos em Computação Gráfica Luiz M. G. Gonçalves

  2. Iluminação local • Estudo de como os diferentes nmateriais refletem luz • Optica • Geometrica (yes:-) • Ondas (not in this class) • Como a BRDF fr encapsula as propriedades de reflectância de um material

  3. Terms • Flux – Power of light energy passing through a surface per unit time, measured in watts = joules/sec • Irradiance (E) – Incoming power (flux) per unit area (W/m2) • Radiosity (B) – Outgoing power (flux) per unit area (W/m2)

  4. Hemisphere r • Use a hemisphereW over surface to measure incoming/outgoing flux • Measured using the solid angle w • Unit is steradian (sr) = area of r2 on sphere • Area of sphere = 4pr2 • Number of steradians in a hemisphere = 2p

  5. dq1 Diminuindo(Foreshortening) dq2 dA1 dA2 • Light arriving on a surface at an angle is distributed differently, dq1=dq2 but dA1dA2 dA1 = dA2 cosq2 • Intensity (I) – Power (flux) per unit solid angle (W/sr) • Irradiance is the foreshortened incident intensity Ei = Ii cosqi dwi

  6. The Reflectivity • Measures the portion of incident irradiance (Ei) that is reflected as intensity (Ir) r = dIr /dEi • The reflected intensity is the forshortened incident intensity scaled by the reflectivity Ir = rIi cosqidwi • Ranges from 0 to 1 (conservation of energy)

  7. Radiance • Radiance (L) – Power per unit solid angle per unit foreshortened area (W/(srm2)) • Radiance is the intensity per area forshortened L = dI/(dA cos q) • Or the irradiance per solid angle forshortened L = dE/(dw cos q)

  8. The Bidirectional Reflectance Distribution Function (BRDF) • Measures the portion of incident irradiance (Ei) that is reflected as radiance (Lr) fr = dLr/dEi • Ranges from 0 to 

  9. 6-D BRDF fr(qi, fi, qr, fr, u, v) Incident direction qi, fi Reflected direction qr, fr Surface parameterization u,v 4-D BRDF fr(qi, fi, qr, fr) Homogeneous material Anisotropic, depends on incoming azimuth e.g. hair, brushed metal, ornaments 3-D BRDF fr(qi, qr, fi – fr) Isotropic, independent of incoming azimuth e.g. Phong highlight 1-D BRDF fr(qi) Perfectly diffuse e.g. Lambertian Parameterizations

  10. BRDF Attributes • Reciprocity fr(qi, fi, qr, fr) = fr(qr, fr, qi, fi) • Materials are not a one-way street • Incoming to outgoing pathway same as outgoing to incoming pathway • Conservation of Energy • When integrated, must add to less than one • Materials must not add energy • Materials must absorb some amount of energy

  11. Modeling BRDF’s • Mathematical derivation • Use laws of physics, geometry • Statistical model of idealized material • Simulation • Model material directly • Render light reflected onto hemisphere • Measurement • Reflect real light off of real material • Gonioreflectometer

  12. Illumination via Reflectivity Ir = kara Ia (NL) +S (kdrd Id +ksrs Is) (NL) dw • Constants kd + ks = 1 • Intensities • Ia = average color of reflected light in scene • Id = color of material • Is = color of light source • Reflectivities • Constant: ra = 1/ (NL) • Lambertian: rd = 1 • Phong: rs = (VR)n/ (NL)

  13. Iluminação usando a BRDF • Equação de reflectância • radiância refletida é • a soma da radiância incidente sobre todo o hemisfério • diminuída • escalada pela função BRDF

  14. Reflexão difusa q • rd = (N  L) • Uniforme • Envia mesma quantidade de luz em todas as direções • Quantidade depende do ângulo de incidência • Perfeita • toda luz incidente é refletida • não há absorção

More Related