8 - Illumination (week 4) Flashcards

1
Q

Light sources:

A
  • Point lights ( e.g. a candle flame)
  • Directed lights ( infinite distance e.g. the sun)
  • Spot lights (e.g. torch)
  • Distributed light sources (e.g. bar-type light)
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is attenuation of light

A

Intensity goes down with distance

1/d^2

Directed light has no attenuation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What 4 things can happen when a ray of light hits a surface?

A

-Absorption (no re-emission)
-Reflection (diffuse, specular)
-Refraction (where the light is refracted, potentially at a different angle, through another medium)
-Fluorescence (RARE)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Reflection types:

A
  • Diffuse: reflections are distributed equally
  • Specular :
    perfect
    where reflection is just in one direction
    imperfect
    where it is in multiple directions
    some light is scattered away from the principal reflected direction
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Global Illumination Modelling

A

Global illumination modelling considers all interactions of light in the scene – both directly from its source and indirect lighting.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Why do we not follow the rays of each light for global illumination modelling?

A

Way too complicated and computationally expensive. We just follow the ray of light until it hits the first object.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Local Illumination Modelling

A

considers the interaction of light between the object and the light sources in the scene;

The effect of light from other objects in the scene is ignored.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Diffuse Reflection: Lambert’s Cosine Law

A

Light intensity observed from an object’s surface that is diffusely reflecting is directly proportional to the cosine of the angle θ between the observer’s line of sight and the surface normal.

FORMULA:
I intensity of incident light
L direction to light
n surface normal

L = normalise(Plight - Ppoint)

I = Ik cos = Ik n . L

kd is the reflective property of the surface (diffuse parameter)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Specular Reflection variables:

A

I intensity = the specular reflected intensity
r ‘mirror’ direction
v viewing direction
L direction to light
d distance to the light
n surface normal
k is the specular reflection intensity parameter; its value depends on the material

Ω=omega

Note that r is the reflected direction, and can be calculated using n and L

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

phong model formula

A

I = Ik (r⋅v)^n = Ik (cosΩ)^n

if n is small it’s a dull surface if its larger it’s shiny
if its infinite its a mirror (perfect reflection)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What happens in the Phong model if the point light is at infinity vs at a given position?

A

I and L are constant

L = normalise(Plight - Ppoint)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Blinn Phong model

A

Simplified Phong model
Calculate vector H (halfway) vector between viewer and light source
If H = N, Is is maximum.
Is = Ik(N.H)^n

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

When is Blinn Phong most efficient:

A
  • Both the viewers and the light source are far from the surface
  • V and L are constant (so H is also constant).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Shading 3 types:

A

Flat,
Gouraud,
Phong

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Flat shading:

A

a single intensity is calculated for each polygon.

The shade is determined by the polygon’s normal and colour at the “centre”.

FAST

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

How do we calculate the normal of a triangular face?

A

Cross product of any of the two vectors in the triangle

17
Q

How are vertex normals calculated?

A

From the connected faces the normals are calculated and averaged (must be normalized)

18
Q

Gouraud shading

A

Calculate vertex normals and shades,

Bilinearly interpolate LIGHT INTENSITY between the vertices

BASIC, GOOD FOR DIFFUSE,
POOR FOR SPECULAR

Interpolate intensities between vertices:
Calculates shades at vertices and interpolates to interior pixels

However, specular reflections get muted in this representation;

19
Q

Phong

A

Calculate vertex normals, Bilinearly interpolate

NORMALS between the vertices then calculate shade

SLOW, GOOD

Interpolate normals:
Interpolate normal direction to interior pixels then calculate shade

20
Q

Best use Flat Phong and gourad

A

Flat : Basic Applications

Gourad : Diffuse surfaces ks ≈ 0

Phong : Surfaces with specular reflection large ks

21
Q

Properties use Flat Phong and gourad

A
  • Flat: Fast; avoids interpolation

Gourad :
* Basic shading, good for diffuse reflections
* Poor rendering of highlights and specular reflections

Phong:
* Highest quality without volumetric rendering
* 4-5 slower than Gouraud

22
Q

When would you use Phong and Gouraud together

A

Use Phongf for surfaces with specular reflection (large ks)
Use Gouraud for diffuse (ks=0)

23
Q

Phong explain:

A

Calculates each pixel individually.

Takes into account the normals at each pixel of the surface allowing to better display curled surfaces and accurately simulate the change of direction of light.

24
Q

Gourad

A

Calculates the average colour for each vertex in the polygon and interpolates them across its surface.

Can result in a loss of accuracy with complex curvatures leading to a faceted appearance.

Incapable of accurate highlights.