• No results found

LEC_15_Projections.pdf

N/A
N/A
Protected

Academic year: 2020

Share "LEC_15_Projections.pdf"

Copied!
33
0
0

Loading.... (view fulltext now)

Full text

(1)

Nihar Ranjan Roy

(2)

What is Projection?

It can be defined as mapping of an

object which is in 3D domain into 2D

domain.

(3)

Types of Projections

Projection

Parallel

Perspective

3

(4)

Parallel Projection Taxonomy

Parallel

Orthographic

Multiview Axonometric

Isometric Dimetric Trimetric

Oblique

Cavalier Cabinet

(5)

Taxonomy of Perspective Projection

Perspective

Projection

One point

Two Point

Three point

5

(6)

Perspective Projection (

PP

)

Its generalization of the principles

used by an artist in preparing

perspective drawing on 3D objects and

scenes.

(7)

One point Perspective

• Depends on how many principal axes

intersect with view plane.

• Parallel lines not parallel to view plane

have the same vanishing point.

(8)

Two Point Perspective

(9)

Three point perspective

(10)

Perspective projection

10

N

Center of projection (eye)

View Plane

View plane Normal

(11)

Characteristics of PP

• Perspective foreshortening:-illusion that length of the objects appear smaller as their distance from the center of projection changes.

COP

• Principal Vanishing points:- apparent intersection of the lines parallel to principal axes with axes.

(12)

• View confusion

:-12

Center of projection

Objects behind the center of projection are

(13)

• Topological Distortion:

13

P1

p2

(14)

Transformation for Perspective

14 P(x,y,z) Z+ Y+ X+ P’(x’,y’,z’) C(0,0,-d) O O’ A A` z d

ΔAOC and ΔA’O’C are similar Δ (x’/x)=(d/(z+d)) similarly

(y’/y)=(d/(z+d))

(z’/z)=(d/(z+d)) where z`=0

(15)

Variations of Projection Matrix

P

perspective

=

P

perspective

=

where r=1/d

(16)

Problem Session

Q. A line from A(10,-10,10) and

B(10,-10,0) is being viewed from the point

P(0,0,20). Find the projection of this

line on xy plane.

(17)

Solution

COP

C(0,0,20) and the projection plane is z’=0

COP

C(0,0,-d)

COP

C(0,0,-(-20))

P

perspective

=

R=-1/20=-0.05

A’=(20,-20,0) and B’=(10,-10,0).

17 X Y Z 1 = 10 10 -10 -10 10 0 1 1

=

(18)

problem

Using origin as center of projection,

derive the perspective projection on to

the plane passing through the point

R

0

(x

0

,y

0

,z

0

) and having the normal

vector N=n

1

i+n

2

j+n

3

k

(19)

Help

(20)

According to property of vector

OP’=α.OP

x`i+y`j+z`k= α(xi+yj+zk)

X`= αx

Y`= αy

Z`= αz

Equation of the plane

n

1

x+n

2

y+n

3

z+d=0

Since point P`(x`,y`,z`) line on

the plane it must satisfy the

equation

20

P(x,y,z)

P’(x’,y’,z’)

R0(x0,y0,z0) N=n1i+n2j+n3k

o

x

(21)

21

P(x,y,z)

P’(x’,y’,z’)

R0(x0,y0,z0) N=n1i+n2j+n3k

o

x

(22)
(23)

Problem

Find the projection matrix for the

previous case if the center of projection

is at C(x

c

,y

c

,z

c

)

(24)

Solution

• Steps involved

– Translate the center of projection to origin – Perform the projection as in previous case – Translate back the center of projection

Here R0=(x0-xc,y0-yc,z0-zc)

So the the new composite transformation matrix is

=Tc. Pper,origin .T-c

Where Pper,origin=Perspective transformation matrix with COP at origin.

(25)

Parallel projection taxonomy

Parallel

Orthographic

Multiview Axonometric

Isometric Dimetric Trimetric

Oblique

Cavalier Cabinet

(26)

Oblique Projetion

The projection vector is not perpendicular to projection plane.

Cavalier The lines perpendicular to the projection plane are preserved in length.

L L/2

Cabinet The lines perpendicular to projection plane are ½ their true length.

26

Parallel

Oblique

(27)

Orthographic Projections

The projection vector is perpendicular to the

projection plane

Multiview Parallel projections

Direction of

projection is parallel to principal axis.

TOP view,BOTTOM view,SIDE views..ie u read it in

mechanical drawing.

Axonometric parallel projections

projection vector

is not parallel to any of the principal axes.

(28)

Axonometric Projections

• Isometric projection vector makes equal angle with all the principal axes.

• Dimetric makes equal angle with two principal axes.

• Trimetric  makes unequal angles with three principal axes.

(29)

problem

Derive the matrix for parallel projection

onto the xy plane in the direction of

projection vector v=ai+bj+ck.

(30)

Parallel projection

30 X Y Z P(x,y,z) P’(x’,y’,z’)

V=ai +bj +ck Z’=0

PP’ has the direction of V PP`=λV

X`-x= λ a Y`-y= λ b Z`-z= λ c

But z`=0λ =-(z/c)

x’=x-(az/c)y’=y-(bz/c) X’ Y’ Z’ 1 =

1 0 -(a/c) 0 0 1 -(b/c) 0 0 0 0 0 0 0 0 1

(31)

Orthographic Projection on XY

V=ai+bj+ck

a=b=0

V=ck

P

par

=

P

orth

=

31

1 0 -(a/c) 0 0 1 -(b/c) 0 0 0 0 0 0 0 0 1

1 0 0 0 0 1 0 0 0 0 0 0

0 0 0 1 X

Y Z

P(x,y,z)

(32)

Oblique Projection

32 X Y Z P(0,0,1) P’(x’,y’,z’(0)) V=ai+bj+ck B A O y’ x’ Ө

f

OA=x’=f cos Ө

AP’=y’=f sin Ө

PP’ and V have same direction V= α PP’

a= α(x`-x)= α f cos Ө

b= α(y`-y)= α fsin Ө

c= α (z’-1)= - α

z’=0  c=- α on xy plane

Oblique projection is special case of Parallel projection

Poblique=

1 0 -(a/c) 0 0 1 -(b/c) 0 0 0 0 0 0 0 0 1

1 0 f cos Ө 0 0 1 f sin Ө 0 0 0 0 0 0 0 0 1

=

L=1

(33)

Cavalier

there is no foreshortening ie

f=1

Cabinet

foreshortening is ½ ie

f=

1

/

2

33

1 0 f cos Ө 0 0 1 f sin Ө 0 0 0 0 0 0 0 0 1

1 0 (½) cos Ө 0 0 1 (1/

2)sin Ө 0

0 0 0 0 0 0 0 1

References

Related documents