Unit8: Perspective 1
Unit8: Perspective
Mike Chantler, 3/10/2008 3D Modelling & Animation Module F21MA
Unit contents
- Perspective
- Motion in three dimensions
- Perspective distortion of images
- Manipulating multiple images in 3D
Unit8: Perspective Mike Chantler, 3/10/2008 Unit contents - - PDF document
Unit8: Perspective 3D Modelling & Animation Module F21MA Unit8: Perspective Mike Chantler, 3/10/2008 Unit contents Perspective Motion in three dimensions Perspective distortion of images Manipulating multiple images in
Unit8: Perspective 1
Unit8: Perspective 2
perspective projection
Unit8: Perspective 3
perspective projection
Unit8: Perspective 4
Unit8: Perspective 5
Image/screen
camera
Unit8: Perspective 6
camera
Unit8: Perspective 7
camera
camera
Unit8: Perspective 8
camera
Unit8: Perspective 9
screen
scale
Unit8: Perspective 10
x y
x y
Unit8: Perspective 11
x y
(vpX, vpY)
x y
Unit8: Perspective 12
x y
Unit8: Perspective 13
x y
Unit8: Perspective 14
Unit8: Perspective 15
Unit8: Perspective 16
Level ‘0’ = furthest away Level ‘1’ = next furthest away); Level ‘2’ etc.
Unit8: Perspective 17
Unit8: Perspective 18
– rotation – scaling – translation – skewing
– myDisplayObject.transform.matrix = my Matrix
Unit8: Perspective 19
Unit8: Perspective 20
tl tr bl br
Unit8: Perspective 21
tl tr bl br
tl tr bl br
(BitmapData)
Unit8: Perspective 22
Unit8: Perspective 23
Unit8: Perspective 24
camera
Unit8: Perspective 25
camera
Unit8: Perspective 26
Unit8: Perspective 27
1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8
transformed
theta (anticlockwise)
x z clockwise angle
Unit8: Perspective 28
Unit8: Perspective 29
bdTransform=BitmapTransformer(512,512,10,10); //Initialise the quad's four x,y,z vertices and their copies
function show() { this.graphics.clear(); //Use bdTransform to map rectangular //bitmap onto this quad bdTransform.mapBitmapData (im, tl3.twoD, tr3.twoD, br3.twoD, bl3.twoD, this); }
Unit8: Perspective 30
Unit8: Perspective 31
Unit8: Perspective 32
Unit8: Perspective 33