SlideShare a Scribd company logo
1 of 41
Welcome To The
Presentation
World University Of Bangladesh
3D Transformation
INTRODUCTION
Here we introduce to about 3D Transformation
TRANSLATION
ROTATION
SCALINGREFLECTIONS
SHEARING
OBJECTIVE
To understand basic
conventions for
object
transformations in 3D
To understand
basic
transformations
in 3D including
Translation,
Rotation, Scaling
To understand
other
transformations
like Reflection,
Shear
Transformations are a fundamental part
of the computer graphics. Transformations
are the movement of the object in
Cartesian plane .
Transformation
• Transformation are used to position objects , to
shape object , to change viewing positions , and
even how something is viewed.
• In simple words transformation is used for
1) Modeling
2) viewing
Why we use transformation
Three Dimensional Transformations
When the transformation takes place on a 3D
plane , it is called 3D transformation.
Methods for object modeling transformation in
three dimensions are extended from two
dimensional methods by including consideration
for the z coordinate.
Three Dimensional Modeling
Transformations
• Generalize from 2D by including z
coordinate
• Straightforward for translation and scale,
rotation more difficult
• Homogeneous coordinates: 4 components
• Transformation matrices: 4×4 elements
3D Transformation
.
Simple
transformation
Complex &
Conjugate
transformation
Translation
Rotation
Scaling
Reflection
Shearing
3D
Transformation
3D Point
• We will consider points as column vectors.
Thus, a typical point with coordinates (x, y, z)
is represented as:










z
y
x
3D Point Homogenous Coordinate
• We don't lose anything
• The main advantage: it is easier to
compose translation and rotation
• Everything is matrix multiplication 











1
z
y
x
3D Coordinate Systems
Right Hand
coordinate system:
Left Hand coordinate
system:
3D Transformation
In homogeneous coordinates, 3D
transformations are represented by 4×4
matrixes:












1000
z
y
x
tihg
tfed
tcba
TRANSLATION
3D translation
• An object is translated in 3D dimensional by
transforming each of the defining points of the
objects.
• Moving of object is called translation.
• In 3 dimensional homogeneous coordinate
representation , a point is transformed from position
P = ( x, y , z) to P’=( x’, y’, z’)
• This can be written as:-
Using P’ = T . P









































11000
100
010
001
1
z
y
x
t
t
t
z
y
x
z
y
x
3D translation
• The matrix representation is equivalent to the three equation.
x’=x+ tx , y’=y+ ty , z’=z+ tz
Where parameter tx , ty , tz are specifying translation distance for the
coordinate direction x , y , z are assigned any real value.
• Translate an object
by translating each
vertex in the object.
ROTATION
3D Rotation
In general, rotations are specified by
a rotation axis and an angle. In two-
dimensions there is only one choice
of a rotation axis that leaves points
in the plane.
3D Rotation
 The easiest rotation axes are those that parallel to the
coordinate axis.
 Positive rotation angles produce counterclockwise
rotations about a coordinate axix, if we are looking
along the positive half of the axis toward the
coordinate origin.
fig: 3D rotation
Coordinate Axis Rotations
Obtain rotations around other axes through cyclic
permutation of coordinate parameters:
xzyx 
Fig:Coordinate Axis Rotations
Coordinate Axis Rotations
Z-axis rotation: For z axis same as 2D rotation:
x’=x*cos θ-y*sin θ
Y’=x*sin θ +y*cos θ
Z’=z 























 













11000
0100
00cossin
00sincos
1
'
'
'
z
y
x
z
y
x


PRP  )(z
Fig : Z-axis rotation
Coordinate Axis Rotations







































11000
0cossin0
0sincos0
0001
1
'
'
'
z
y
x
z
y
x


X-axis rotation:
Y’=y*cos θ -z*sin θ
Z’=z*sin θ +x*cos θ
X’=x
PRP  )(x
Fig : X-axis rotation
Coordinate Axis Rotations








































11000
0cos0sin
0010
0sin0cos
1
'
'
'
z
y
x
z
y
x
PRP  )(y
Y-axis rotation:
Z’=z*cos θ -x*sin θ
X’=z*sin θ +x*cos θ
Y’=y
Fig : Y-axis rotation
SCALING
3D Scaling
You can change the size of an object using
scaling transformation . In the scaling process ,
you either expand or compress the dimensions
of the object . Scaling can be achieved by
multiplying the original coordinates of the
object with scaling factor to get the desired
result.
3D Scaling
About origin: Changes the size
of the object and repositions the
object relative to the coordinate
origin.
where Sx = scale factor in the x
direction, Sy = scale factor in the y
direction, and Sz = scale factor in
the z direction.
Fig: Scaling









































11000
000
000
000
1
z
y
x
s
s
s
z
y
x
z
y
x
PSP 
3D Scaling
About any fixed point:
Scaling with respect to an arbitrary fixed point is not as
simple as scaling with respect to the origin .
The procedure of scaling with respect to an arbitrary fixed
point is:
 Translate the object so that the fixed point coincides
with the origin.
 Scale the object with respect to the origin.
 Use the inverse translation of step 1 to return the
objects to its original position.
3D Scaling
About any fixed point:
fig : fixed point scaling
















1000
)1(00
)1(00
)1(00
),,(),,(),,(
fzz
fyy
fxx
fffzyxfff
zss
yss
xss
zyxssszyx TST
The corresponding composite
transformation matrix is:
3d scaling
• The equations for scaling :
x’ = x . sx
Ssx,sy,sz y’ = y . sy
z’ = z . sz
fig name: After scaling
REFLECTIONS
3D Reflections
About an axis:equivalent to
180˚rotation about that axis.
3D reflection
• Reflection in computer graphics is
used to emulate reflective objects
like mirrors and shiny surfaces.
• Reflection may be an x-axis
y-axis , z-axis. and also in
the planes xy-plane,yz-plane , and
zx-plane.
• Reflection relative to a given
Axis are equivalent to 180
Degree rotations . Fig: reflection
3d reflection
Reflection about x-axis:-
x’=x y’=-y z’=-z
1 0 0 0
0 -1 0 0
0 0 -1 0
0 0 0 1
Reflection about y-axis:-
y’=y x’=-x z’=-z
Fig: X axis reflection
Fig:Y axis reflection
3D reflection
• The matrix for reflection about y-axis:-
-1 0 0 0
0 1 0 0
0 0 -1 0
0 0 0 1
• Reflection about z-axis:-
x’=-x y’=-y z’=z -1 0 0 0
0 -1 0 0
0 0 1 0
0 0 0 1
Fig: Z axis reflection
SHEARING
3D Shearing
A transformation that distorts the
shape of an object such that the transformed
shape appears as if the object were composed
of internal layers that had been caused to slide
over each other is called a shearing.
3D Shearing
• In two dimensions, transformations relative to
the x or y axes to produce distortions in the
shapes of objects. In three dimensions, we can
also generate shears relative to the z axis.
fig: before shearing fig: after shearing
3D Shearing
 Modify object shapes
 Useful for perspective projections:
 E.g. draw a cube (3D) on a screen (2D)
 Alter the values for x and y by an amount
proportional to the distance from zref
SHEARING ABOUT XY AXIS
• Parameters a and b can be assigned
any real values. The effect of this
transformation matrix is to alter x-
and y-coordinate values by an
amount that is proportional to the z
value, while leaving the z coordinate
unchanged.
• Boundaries of planes that are
perpendicular to the z axis are thus
shifted by an amount proportional to
z. An example of the effect of this
shearing matrix on a unit cube is
shown in Fig., for shearing values
a=b=1. Shearing matrices for the x
axis and y axis are defined similarly.
In space, we divide shear transformation according to the
direction of the surfaces xy,xz and yz. Values of Sx,Sy and Sz
determine shear transformation sizes for all the directions.
A shear transformation about the xy plane :
| 1 0 0 0 |
Axy = | 0 1 0 0 |
| Sx Sy 0 0|
| 0 0 0 1 |
A shear matrix about the xz plane :
| 1 0 0 0 |
Axz = | Sx 1 Sz 0|
| 0 1 1 0 |
| 0 0 0 1 |
A shear matrix about the yz plane :
| 1 Sy Sz 0 |
| 0 1 0 0 |
Ayz = | 0 0 1 0 |
| 0 0 0 1 |
Thank you so much for being
with us up to now

More Related Content

What's hot

COMPUTER GRAPHICS-"Projection"
COMPUTER GRAPHICS-"Projection"COMPUTER GRAPHICS-"Projection"
COMPUTER GRAPHICS-"Projection"Ankit Surti
 
2 d geometric transformations
2 d geometric transformations2 d geometric transformations
2 d geometric transformationsMohd Arif
 
Two dimensional geometric transformations
Two dimensional geometric transformationsTwo dimensional geometric transformations
Two dimensional geometric transformationsMohammad Sadiq
 
3D Graphics : Computer Graphics Fundamentals
3D Graphics : Computer Graphics Fundamentals3D Graphics : Computer Graphics Fundamentals
3D Graphics : Computer Graphics FundamentalsMuhammed Afsal Villan
 
Composite transformations
Composite transformationsComposite transformations
Composite transformationsMohd Arif
 
Polygon clipping
Polygon clippingPolygon clipping
Polygon clippingMohd Arif
 
Composite transformation
Composite transformationComposite transformation
Composite transformationPooja Dixit
 
Attributes of output primitives( curve attributes & area fill attributes)
Attributes of output primitives( curve attributes & area fill attributes)Attributes of output primitives( curve attributes & area fill attributes)
Attributes of output primitives( curve attributes & area fill attributes)shalinikarunakaran1
 
Computer graphics basic transformation
Computer graphics basic transformationComputer graphics basic transformation
Computer graphics basic transformationSelvakumar Gna
 
3 d viewing projection
3 d viewing  projection3 d viewing  projection
3 d viewing projectionPooja Dixit
 
Raster scan system & random scan system
Raster scan system & random scan systemRaster scan system & random scan system
Raster scan system & random scan systemshalinikarunakaran1
 
Line drawing algo.
Line drawing algo.Line drawing algo.
Line drawing algo.Mohd Arif
 
Window to viewport transformation
Window to viewport transformationWindow to viewport transformation
Window to viewport transformationAnkit Garg
 
Window to viewport transformation&matrix representation of homogeneous co...
Window to viewport transformation&matrix representation of homogeneous co...Window to viewport transformation&matrix representation of homogeneous co...
Window to viewport transformation&matrix representation of homogeneous co...Mani Kanth
 
Attributes of output primitive(line attributes)
Attributes of output primitive(line attributes)Attributes of output primitive(line attributes)
Attributes of output primitive(line attributes)shalinikarunakaran1
 
Cohen sutherland line clipping
Cohen sutherland line clippingCohen sutherland line clipping
Cohen sutherland line clippingMani Kanth
 
2 d viewing computer graphics
2 d viewing computer graphics2 d viewing computer graphics
2 d viewing computer graphicsKALESHWAR KUMAR
 

What's hot (20)

COMPUTER GRAPHICS-"Projection"
COMPUTER GRAPHICS-"Projection"COMPUTER GRAPHICS-"Projection"
COMPUTER GRAPHICS-"Projection"
 
2 d geometric transformations
2 d geometric transformations2 d geometric transformations
2 d geometric transformations
 
Two dimensional geometric transformations
Two dimensional geometric transformationsTwo dimensional geometric transformations
Two dimensional geometric transformations
 
3D Graphics : Computer Graphics Fundamentals
3D Graphics : Computer Graphics Fundamentals3D Graphics : Computer Graphics Fundamentals
3D Graphics : Computer Graphics Fundamentals
 
Composite transformations
Composite transformationsComposite transformations
Composite transformations
 
Polygon clipping
Polygon clippingPolygon clipping
Polygon clipping
 
Composite transformation
Composite transformationComposite transformation
Composite transformation
 
Attributes of output primitives( curve attributes & area fill attributes)
Attributes of output primitives( curve attributes & area fill attributes)Attributes of output primitives( curve attributes & area fill attributes)
Attributes of output primitives( curve attributes & area fill attributes)
 
Computer graphics basic transformation
Computer graphics basic transformationComputer graphics basic transformation
Computer graphics basic transformation
 
3 d viewing projection
3 d viewing  projection3 d viewing  projection
3 d viewing projection
 
Raster scan system & random scan system
Raster scan system & random scan systemRaster scan system & random scan system
Raster scan system & random scan system
 
Line drawing algo.
Line drawing algo.Line drawing algo.
Line drawing algo.
 
Window to viewport transformation
Window to viewport transformationWindow to viewport transformation
Window to viewport transformation
 
Clipping
ClippingClipping
Clipping
 
Window to viewport transformation&matrix representation of homogeneous co...
Window to viewport transformation&matrix representation of homogeneous co...Window to viewport transformation&matrix representation of homogeneous co...
Window to viewport transformation&matrix representation of homogeneous co...
 
Attributes of output primitive(line attributes)
Attributes of output primitive(line attributes)Attributes of output primitive(line attributes)
Attributes of output primitive(line attributes)
 
Cohen sutherland line clipping
Cohen sutherland line clippingCohen sutherland line clipping
Cohen sutherland line clipping
 
2 d viewing computer graphics
2 d viewing computer graphics2 d viewing computer graphics
2 d viewing computer graphics
 
3D Transformation
3D Transformation3D Transformation
3D Transformation
 
3 d display methods
3 d display methods3 d display methods
3 d display methods
 

Similar to 3D Transformation in Computer Graphics

3D transformation and viewing
3D transformation and viewing3D transformation and viewing
3D transformation and viewingYogita Jain
 
3 d transformation
3 d transformation3 d transformation
3 d transformationMani Kanth
 
3 d transformation
3 d transformation3 d transformation
3 d transformationPooja Dixit
 
3 d transformation
3 d transformation3 d transformation
3 d transformationPooja Dixit
 
Homogeneous Representation: rotating, shearing
Homogeneous Representation: rotating, shearingHomogeneous Representation: rotating, shearing
Homogeneous Representation: rotating, shearingManthan Kanani
 
GeometricTransformations.ppt
GeometricTransformations.pptGeometricTransformations.ppt
GeometricTransformations.pptDebjit Doira
 
3D TRANSFORMATION: MATRIX REPRESENTATION
3D TRANSFORMATION: MATRIX REPRESENTATION3D TRANSFORMATION: MATRIX REPRESENTATION
3D TRANSFORMATION: MATRIX REPRESENTATIONAhtesham Ullah khan
 
3 d scaling and translation in homogeneous coordinates
3 d scaling and translation in homogeneous coordinates3 d scaling and translation in homogeneous coordinates
3 d scaling and translation in homogeneous coordinatesKRIPA SHNAKAR TIWARI
 
Geometric transformation
Geometric transformationGeometric transformation
Geometric transformationDhruv Shah
 
Part 3- Manipulation and Representation of Curves.pptx
Part 3- Manipulation and Representation of Curves.pptxPart 3- Manipulation and Representation of Curves.pptx
Part 3- Manipulation and Representation of Curves.pptxKhalil Alhatab
 
3-D Transformation in Computer Graphics
3-D Transformation in Computer Graphics3-D Transformation in Computer Graphics
3-D Transformation in Computer GraphicsSanthiNivas
 
Three dimensional transformations
Three dimensional transformationsThree dimensional transformations
Three dimensional transformationsNareek
 
Part 2- Transformation.pptx
Part 2- Transformation.pptxPart 2- Transformation.pptx
Part 2- Transformation.pptxKhalil Alhatab
 
Two dimensionaltransformations
Two dimensionaltransformationsTwo dimensionaltransformations
Two dimensionaltransformationsNareek
 
09transformation3d
09transformation3d09transformation3d
09transformation3dKetan Jani
 
Part 2- Geometric Transformation.pptx
Part 2- Geometric Transformation.pptxPart 2- Geometric Transformation.pptx
Part 2- Geometric Transformation.pptxKhalil Alhatab
 
Unit-3 overview of transformations
Unit-3 overview of transformationsUnit-3 overview of transformations
Unit-3 overview of transformationsAmol Gaikwad
 

Similar to 3D Transformation in Computer Graphics (20)

3D transformation and viewing
3D transformation and viewing3D transformation and viewing
3D transformation and viewing
 
3 d transformation
3 d transformation3 d transformation
3 d transformation
 
3 d transformation
3 d transformation3 d transformation
3 d transformation
 
Computer graphics presentation
Computer graphics presentationComputer graphics presentation
Computer graphics presentation
 
3 d transformation
3 d transformation3 d transformation
3 d transformation
 
Homogeneous Representation: rotating, shearing
Homogeneous Representation: rotating, shearingHomogeneous Representation: rotating, shearing
Homogeneous Representation: rotating, shearing
 
GeometricTransformations.ppt
GeometricTransformations.pptGeometricTransformations.ppt
GeometricTransformations.ppt
 
3D TRANSFORMATION: MATRIX REPRESENTATION
3D TRANSFORMATION: MATRIX REPRESENTATION3D TRANSFORMATION: MATRIX REPRESENTATION
3D TRANSFORMATION: MATRIX REPRESENTATION
 
3 d scaling and translation in homogeneous coordinates
3 d scaling and translation in homogeneous coordinates3 d scaling and translation in homogeneous coordinates
3 d scaling and translation in homogeneous coordinates
 
Geometric transformation
Geometric transformationGeometric transformation
Geometric transformation
 
Part 3- Manipulation and Representation of Curves.pptx
Part 3- Manipulation and Representation of Curves.pptxPart 3- Manipulation and Representation of Curves.pptx
Part 3- Manipulation and Representation of Curves.pptx
 
3-D Transformation in Computer Graphics
3-D Transformation in Computer Graphics3-D Transformation in Computer Graphics
3-D Transformation in Computer Graphics
 
Three dimensional transformations
Three dimensional transformationsThree dimensional transformations
Three dimensional transformations
 
Part 2- Transformation.pptx
Part 2- Transformation.pptxPart 2- Transformation.pptx
Part 2- Transformation.pptx
 
Two dimensionaltransformations
Two dimensionaltransformationsTwo dimensionaltransformations
Two dimensionaltransformations
 
Virtual reality
Virtual realityVirtual reality
Virtual reality
 
transformation 3d
transformation 3dtransformation 3d
transformation 3d
 
09transformation3d
09transformation3d09transformation3d
09transformation3d
 
Part 2- Geometric Transformation.pptx
Part 2- Geometric Transformation.pptxPart 2- Geometric Transformation.pptx
Part 2- Geometric Transformation.pptx
 
Unit-3 overview of transformations
Unit-3 overview of transformationsUnit-3 overview of transformations
Unit-3 overview of transformations
 

Recently uploaded

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxPooja Bhuva
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxJisc
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsMebane Rash
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structuredhanjurrannsibayan2
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfDr Vijay Vishwakarma
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Pooja Bhuva
 

Recently uploaded (20)

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Interdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptxInterdisciplinary_Insights_Data_Collection_Methods.pptx
Interdisciplinary_Insights_Data_Collection_Methods.pptx
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
Beyond_Borders_Understanding_Anime_and_Manga_Fandom_A_Comprehensive_Audience_...
 

3D Transformation in Computer Graphics

  • 1. Welcome To The Presentation World University Of Bangladesh 3D Transformation
  • 2. INTRODUCTION Here we introduce to about 3D Transformation TRANSLATION ROTATION SCALINGREFLECTIONS SHEARING
  • 3. OBJECTIVE To understand basic conventions for object transformations in 3D To understand basic transformations in 3D including Translation, Rotation, Scaling To understand other transformations like Reflection, Shear
  • 4. Transformations are a fundamental part of the computer graphics. Transformations are the movement of the object in Cartesian plane . Transformation
  • 5. • Transformation are used to position objects , to shape object , to change viewing positions , and even how something is viewed. • In simple words transformation is used for 1) Modeling 2) viewing Why we use transformation
  • 6. Three Dimensional Transformations When the transformation takes place on a 3D plane , it is called 3D transformation. Methods for object modeling transformation in three dimensions are extended from two dimensional methods by including consideration for the z coordinate.
  • 7. Three Dimensional Modeling Transformations • Generalize from 2D by including z coordinate • Straightforward for translation and scale, rotation more difficult • Homogeneous coordinates: 4 components • Transformation matrices: 4×4 elements
  • 9. 3D Point • We will consider points as column vectors. Thus, a typical point with coordinates (x, y, z) is represented as:           z y x
  • 10. 3D Point Homogenous Coordinate • We don't lose anything • The main advantage: it is easier to compose translation and rotation • Everything is matrix multiplication             1 z y x
  • 11. 3D Coordinate Systems Right Hand coordinate system: Left Hand coordinate system:
  • 12. 3D Transformation In homogeneous coordinates, 3D transformations are represented by 4×4 matrixes:             1000 z y x tihg tfed tcba
  • 14. 3D translation • An object is translated in 3D dimensional by transforming each of the defining points of the objects. • Moving of object is called translation. • In 3 dimensional homogeneous coordinate representation , a point is transformed from position P = ( x, y , z) to P’=( x’, y’, z’) • This can be written as:- Using P’ = T . P                                          11000 100 010 001 1 z y x t t t z y x z y x
  • 15. 3D translation • The matrix representation is equivalent to the three equation. x’=x+ tx , y’=y+ ty , z’=z+ tz Where parameter tx , ty , tz are specifying translation distance for the coordinate direction x , y , z are assigned any real value. • Translate an object by translating each vertex in the object.
  • 17. 3D Rotation In general, rotations are specified by a rotation axis and an angle. In two- dimensions there is only one choice of a rotation axis that leaves points in the plane.
  • 18. 3D Rotation  The easiest rotation axes are those that parallel to the coordinate axis.  Positive rotation angles produce counterclockwise rotations about a coordinate axix, if we are looking along the positive half of the axis toward the coordinate origin. fig: 3D rotation
  • 19. Coordinate Axis Rotations Obtain rotations around other axes through cyclic permutation of coordinate parameters: xzyx  Fig:Coordinate Axis Rotations
  • 20. Coordinate Axis Rotations Z-axis rotation: For z axis same as 2D rotation: x’=x*cos θ-y*sin θ Y’=x*sin θ +y*cos θ Z’=z                                        11000 0100 00cossin 00sincos 1 ' ' ' z y x z y x   PRP  )(z Fig : Z-axis rotation
  • 24. 3D Scaling You can change the size of an object using scaling transformation . In the scaling process , you either expand or compress the dimensions of the object . Scaling can be achieved by multiplying the original coordinates of the object with scaling factor to get the desired result.
  • 25. 3D Scaling About origin: Changes the size of the object and repositions the object relative to the coordinate origin. where Sx = scale factor in the x direction, Sy = scale factor in the y direction, and Sz = scale factor in the z direction. Fig: Scaling                                          11000 000 000 000 1 z y x s s s z y x z y x PSP 
  • 26. 3D Scaling About any fixed point: Scaling with respect to an arbitrary fixed point is not as simple as scaling with respect to the origin . The procedure of scaling with respect to an arbitrary fixed point is:  Translate the object so that the fixed point coincides with the origin.  Scale the object with respect to the origin.  Use the inverse translation of step 1 to return the objects to its original position.
  • 27. 3D Scaling About any fixed point: fig : fixed point scaling                 1000 )1(00 )1(00 )1(00 ),,(),,(),,( fzz fyy fxx fffzyxfff zss yss xss zyxssszyx TST The corresponding composite transformation matrix is:
  • 28. 3d scaling • The equations for scaling : x’ = x . sx Ssx,sy,sz y’ = y . sy z’ = z . sz fig name: After scaling
  • 30. 3D Reflections About an axis:equivalent to 180˚rotation about that axis.
  • 31. 3D reflection • Reflection in computer graphics is used to emulate reflective objects like mirrors and shiny surfaces. • Reflection may be an x-axis y-axis , z-axis. and also in the planes xy-plane,yz-plane , and zx-plane. • Reflection relative to a given Axis are equivalent to 180 Degree rotations . Fig: reflection
  • 32. 3d reflection Reflection about x-axis:- x’=x y’=-y z’=-z 1 0 0 0 0 -1 0 0 0 0 -1 0 0 0 0 1 Reflection about y-axis:- y’=y x’=-x z’=-z Fig: X axis reflection Fig:Y axis reflection
  • 33. 3D reflection • The matrix for reflection about y-axis:- -1 0 0 0 0 1 0 0 0 0 -1 0 0 0 0 1 • Reflection about z-axis:- x’=-x y’=-y z’=z -1 0 0 0 0 -1 0 0 0 0 1 0 0 0 0 1 Fig: Z axis reflection
  • 35. 3D Shearing A transformation that distorts the shape of an object such that the transformed shape appears as if the object were composed of internal layers that had been caused to slide over each other is called a shearing.
  • 36. 3D Shearing • In two dimensions, transformations relative to the x or y axes to produce distortions in the shapes of objects. In three dimensions, we can also generate shears relative to the z axis. fig: before shearing fig: after shearing
  • 37. 3D Shearing  Modify object shapes  Useful for perspective projections:  E.g. draw a cube (3D) on a screen (2D)  Alter the values for x and y by an amount proportional to the distance from zref
  • 38. SHEARING ABOUT XY AXIS • Parameters a and b can be assigned any real values. The effect of this transformation matrix is to alter x- and y-coordinate values by an amount that is proportional to the z value, while leaving the z coordinate unchanged. • Boundaries of planes that are perpendicular to the z axis are thus shifted by an amount proportional to z. An example of the effect of this shearing matrix on a unit cube is shown in Fig., for shearing values a=b=1. Shearing matrices for the x axis and y axis are defined similarly.
  • 39. In space, we divide shear transformation according to the direction of the surfaces xy,xz and yz. Values of Sx,Sy and Sz determine shear transformation sizes for all the directions. A shear transformation about the xy plane : | 1 0 0 0 | Axy = | 0 1 0 0 | | Sx Sy 0 0| | 0 0 0 1 | A shear matrix about the xz plane : | 1 0 0 0 | Axz = | Sx 1 Sz 0| | 0 1 1 0 | | 0 0 0 1 | A shear matrix about the yz plane : | 1 Sy Sz 0 | | 0 1 0 0 | Ayz = | 0 0 1 0 | | 0 0 0 1 |
  • 40.
  • 41. Thank you so much for being with us up to now