Transcript
Page 1: Projective Alpha Colour

Philip Willis

Projective Alpha Colour

Media Technology Research Centre, University of Bath

Page 2: Projective Alpha Colour

1. Digital compositing and alpha

2. Projective geometry

3. How they come together

Overview of Talk

Media Technology Research Centre, University of Bath

Page 3: Projective Alpha Colour

Porter and Duff 1984

Opacity, alpha:

(r, g, b, ), 0.0 1.0

Digital Compositing

Media Technology Research Centre, University of Bath

Page 4: Projective Alpha Colour

Porter and Duff 1984

A over B

C=

=

Digital Compositing

Media Technology Research Centre, University of Bath

Page 5: Projective Alpha Colour

Porter and Duff 1984

A over B

C= ACA + (1 – A) BCB

= A + (1 – A) B

Digital Compositing

Media Technology Research Centre, University of Bath

BCB

Page 6: Projective Alpha Colour

Porter and Duff 1984

A over B

C= ACA + (1 – A) BCB

= A + (1 – A) B

Digital Compositing

Media Technology Research Centre, University of Bath

CB BCA

A

Page 7: Projective Alpha Colour

Porter and Duff 1984

A over B

C= ACA + (1 – A) BCB

= A + (1 – A) B

Digital Compositing

Media Technology Research Centre, University of Bath

CA

A

CB B

1 - A

Page 8: Projective Alpha Colour

Porter and Duff 1984

Pre-multiplied colours

C= ACA + (1 – A) BCB

= cA + (1 – A) cB

Digital Compositing

Media Technology Research Centre, University of Bath

Page 9: Projective Alpha Colour

Homogeneous Coordinates

Media Technology Research Centre, University of Bath

Unify rotation, translation, scaling.

Why?

4 by 4 matrices.

Page 10: Projective Alpha Colour

Projective Transformations

Media Technology Research Centre, University of Bath

s , t, t,t

v,r,r,r

v,r,r,r

vr ,r,r

w)z, y, (x,

zyx

33,33,23,1

22,32,22,1

11,3,1,21,1

Page 11: Projective Alpha Colour

Projective Geometry

Media Technology Research Centre, University of Bath

Projective (wx, wy, wz, w)

… normalises to give Euclidean:

(x, y, z, 1)

The “w” coordinate is the scale of the projective space.

Page 12: Projective Alpha Colour

1D Projective Geometry (x,w)

Media Technology Research Centre, University of Bath

Page 13: Projective Alpha Colour

1D Projective Geometry (x,w)

Media Technology Research Centre, University of Bath

Page 14: Projective Alpha Colour

2D Projective Geometry (x,y,w)

Media Technology Research Centre, University of Bath

Page 15: Projective Alpha Colour

Projective Geometry and Colour

Media Technology Research Centre, University of Bath

1. (wx, wy, wz, w) … projective

(x, y, z, 1) … normalised

2. (r, g, b, ) … premultiplied

(r, g, b, 1) … normalised

Page 16: Projective Alpha Colour

Projective Alpha Colour

Media Technology Research Centre, University of Bath

(r, g, b, )

r, g, b are measures of energy.

They are unbounded

i.e. not just in [0.0, 1.0]

Page 17: Projective Alpha Colour

Projective Alpha Colour

Media Technology Research Centre, University of Bath

(r, g, b, )

is a measure of scale: area.

It is unbounded

i.e. not just in [0.0, 1.0]

Page 18: Projective Alpha Colour

Projective Colour Space

Media Technology Research Centre, University of Bath

Page 19: Projective Alpha Colour

Projective Colour Space

Media Technology Research Centre, University of Bath

Page 20: Projective Alpha Colour

Projective Colour Space

Media Technology Research Centre, University of Bath

Page 21: Projective Alpha Colour

Projective Colour Space

Media Technology Research Centre, University of Bath

Page 22: Projective Alpha Colour

Projective Colour Space

Media Technology Research Centre, University of Bath

Page 23: Projective Alpha Colour

Pre-multiplied colours?

Media Technology Research Centre, University of Bath

Non pre-multiplied colours?

Page 24: Projective Alpha Colour

• Colours as (r, g, b, ) vectors

• Materials as 4 by 4 projective transformations

• Materials transform colours

Colour Transformations

Media Technology Research Centre, University of Bath

Page 25: Projective Alpha Colour

• Blend materials by “blending” matrices:

matrix multiplication or matrix addition

• Colour mixing, illumination, filtering etc.

Colour Transformations

Media Technology Research Centre, University of Bath

Page 26: Projective Alpha Colour

• Fluorescence

• Translation: colour offset

• Colour rotation

• Scaling: change area of material

• Colour vanishing points.

Colour Transformations

Media Technology Research Centre, University of Bath

Page 27: Projective Alpha Colour

• Correct colour filtering

• Correct illumination effects

• Back-illumination too.

• Subtractive colour (C,M,Y)

• Correct perspective shading

Some Benefits

Media Technology Research Centre, University of Bath

Page 28: Projective Alpha Colour

• Spectral rendering with one alpha value

• Volume rendering

• Unbounded energy and alpha

• Any colour calculations

Some Benefits

Media Technology Research Centre, University of Bath

Page 29: Projective Alpha Colour

Example: Filtering/Illumination

Media Technology Research Centre, University of Bath

Page 30: Projective Alpha Colour

Example: Filtering/Illumination

Media Technology Research Centre, University of Bath

Page 31: Projective Alpha Colour

Philip Willis

Thank you!

Projective Alpha Colour

Media Technology Research Centre, University of Bath


Top Related