Rotation About Arbitrary Point other than the Origin
Rotation About Arbitrary Point other than the Origin
Default rotation matrix is about origin
How to rotate about any arbitrary point pf (Not origin)?
Move fixed point to origin T(-pf) Rotate R() Move fixed point back T(pf)
So, M = T(pf) R() T(-pf)
T(-pf)
R()
T(pf)
Scale about Arbitrary Center
Similary, default scaling is about origin To scale about arbitrary point P = (Px, Py, Pz) by (Sx, Sy, Sz)
1. Translate object by T(-Px, -Py, -Pz) so P coincides with origin 2. Scale object by (Sx, Sy, Sz) 3. Translate object back: T(Px, Py, Py)
In matrix form: T(Px,Py,Pz) (Sx, Sy, Sz) T(-Px,-Py,-Pz) * P
x' 1 0 0 Px Sx 0 0 01 0 0 Px x
y'
z' 1
0 0 0
1 0 0
0 1 0
Py 0
Pz 1
0 0
Sy 0 0
0 Sz 0
00 1 0 Py y
0 1
0 0
0 0
1 0
Pz 1
z 1
Example
Rotation about z axis by 30 degrees about a fixed point (1.0, 2.0, 3.0)
mat 4 m = Identity(); m = Translate(1.0, 2.0, 3.0)*
Rotate(30.0, 0.0, 0.0, 1.0)* Translate(-1.0, -2.0, -3.0);
Remember last matrix specified in program (i.e. translate matrix in example) is first applied
Computer Graphics (CS 4731) Lecture 11: Hierarchical 3D Models
Prof Emmanuel Agu
Computer Science Dept. Worcester Polytechnic Institute (WPI)
Instance Transformation
Start with unique object (a symbol) Each appearance of object in model is an instance
Must scale, orient, position Defines instance transformation
Symbol
Instance
................
................
In order to avoid copyright disputes, this page is only a partial summary.
To fulfill the demand for quickly locating and searching documents.
It is intelligent file search solution for home and business.
Related download
- rotation about an arbitrary axis kennesaw state university
- rotated ellipses and their intersections with lines by
- rotation lemon bay high school
- how to rotate a figure 90 degrees clockwise about a point
- rotation matrix brainmaster technologies inc
- rotation matrices university of utah
- coordinate plane rotations mrs atangan
- rotate the coordinate axes to eliminate the xy use the
- rotation 90 degrees counterclockwise about the origin example
- rotation about arbitrary point other than the origin
Related searches
- life forms other than man are significant
- words other than i
- words other than very
- other than me or other than i
- other than or other then
- rotation about the origin
- rotation about the origin calculator
- rotation around the origin calculator
- 270 rotation about the origin
- rotation around the origin rules
- rotation 180 about the origin rule
- rotation about x axis