Docsity

3D Transformation- reflection, Lecture notes of Computer Graphics

Partial preview of the text

Download 3D Transformation- reflection and more Lecture notes Computer Graphics in PDF only on Docsity!

3D TRANSFORMATION (Reflection & Shearing)

Arvind Kumar^ By:

(Vidya^ Assistant Professor College of Engg.)

Contents

3D

Reflection Shearing

3D REFLECTION
3D

3D Reflection about XZ-Plane

z

y    x  

 

 

 −



 

 

 

 0 0 0 1

0 0 1 0

01 01 00 00 1

'

'' z MXZ xy

3D REFLECTION
3D

3D Reflection about YZ-Plane

z

y    x  

 

 

−



 

 

 

 00 00 01 10

01 10 00 00 1 '

MYZ x zy ''

3D REFLECTION wrt ANY PLANE

3D

Step-1 Translation



 

 

 

 −

−

−

0 0 0 1

0 0 1

0 1 0

1 0 0 tz

ty

tx T

3D REFLECTION wrt ANY PLANE

3D

Step let the normal vector : - 2 Rotation about xy plane

N = 𝒏𝟏𝟐^ +^ N =𝒏𝟐^ 𝒏𝟏𝒊𝟐^ +^ +𝒏𝟑^ 𝒏𝟐𝟐^ 𝒋^ + ,^ 𝒏𝟑^ 𝒌   ^ ^ 

^ ^ 

^  

^ ^ 

^ ^ 

^  

 −

− −

0 0 0 10

01 23 32 0

(^12130) nN nN n N n nN N nNn n n Rxy  

    = n 22 + n 32

3D REFLECTION wrt ANY PLANE

3D

Step-4 Inverse Rotation

  ^ ^ 

^ ^ 

^  

^ ^ 

^ ^ 

^  

 − − − =^ − 0 0 0 10

1 3 2 3 0

1 2 3 2 0 0 1 1 n (^) Nn n n N

n (^) Nn n nN N nN Rxy  

 

3D REFLECTION wrt ANY PLANE

3D

Step-5 Inverse Translation

1 ty tz

tx

T

Numerical

3D

     





 

 −

− −

0 0 03 10

13 13 12 0 0 12 61 0 32 61 1 R xy



 

 

 

 = 000 100 − 001 100

1 0 0 0 Mxy

Numerical

3D

  



 





 

 − − − = − 0 0 03 10 61 21 13 0

61 12 13 0

32 0 1 R xy^1 Resultant Matrix: M ( ) = R − xy^1 ( ) M xy R xy ( ) 

3D Shearing

3D

3D Shearing about X-Axis

3D 

SHx xzy '' ba x zy

3D Shearing

3D

3D Shearing about Y-Axis

3D 

SHy zyx '' ba zyx