Computer Graphics Massive Review Exam 1 Notes
A linear transformation takes a 2-vector and produces another 2-vector by simple matrix multiplication.
Scaling an image can change the length and possibly the direction.
Shearing an image pushes an image sideways. It can also be thought of in terms of rotation along a horizontal/vertical axis. It tilts the image clockwise in the vertical axis and counterclockwise in the horizontal axis.
Composition of Transformations:
Sometimes there is more than 1 transformation that is desired to be applied. We multiply all the transformation vectors with each other.
Transforms are applied from the right side first. So let's say we want to rotate and scale a particular matrix. Denote this by the equation v3 = RSv1, where the scale(S) is applied first before the rotate(R). The order in which two transforms are applied is very different. These techniques work for any transformation.
3D Linear Transformations
A 3D rotation can be decomposed into many 3D shear matrices.
Transforms can not be used to move objects, but to scale and rotate him. We have to use a 3x3 matrix to translate.
x' = m11 * x + m12 * y, y' = m21 * x + m22 * y
Adding an extra dimension was homogeneous coordinates.
[3 2 1] is a location where [3 2 0] is a displacement or direction.
A coordinate system, or coordinate frame consists of an origin or a basis which is a set of three vectors.
We have to designate some global "world" system which subsequently is used to designate all other systems. More on this in an exam review.
(0,0) is not usually the center of the screen so, there has to be some offsets that have to be shifted, which is represented by the far right of the matrix. The result will be some 4D vector, and the important thing is that pixel coordinates are received.
Canonical means to be chosen by convenience.
This is the viewport matrix and this is viewed from the op left. If you want to view from the bottom left, flip some values.
Aspect ratio is width to height. Field of view is inversely related to the size of the object.
This is taking a 3 dimensional space and trying to project it down to 2 dimensions.
A characteristic of an orthographic transformation is that parallel lines remain parallel, and this is useful for technical drawings, etc. This is useful to convey the view of an object.
The general form of an orthographic transformation is the follows:
There is a cuboid in world space. You want to map this cuboid to be centered then back down to the unit cube. The position of this cube is entirely in relation to the locations of the cube in relation to the z axis coordinate.
l : left plane
r: right plane
b: bottom plane
t: top plane
n: near plane
f: far plane
First center the cuboid, then scale it into the unit cube.
This is the matrix looking from the top. and moving the Center/Center of the matrix.
The next section which I will write about is curves.
A curve is a set of points that a pen traces over an interval of time. There are 2 mathematical definitions of a curve.
1. The continuous image of some interval over an n-dimensional space
or
2. A continuous map from a 1-dimensional space to an n-dimensional space.
Curves are infinitely large set of points. There are 3 ways to represent curves mathematically.
1. Implicit curve representation - gives a procedure that can test to see that if a point is on a curve. f(x,y) = 0
2. Parametric representations, which tells where the pen is at any instant of time (x,y) = f(t).
3. Fractals/etc fall into generative and procedural curves.
Curves can all be represented parametrically.
The length of the curve is defined by the integral of the magnitude of the derivative as well.
A curve can be defined as several parametric functions but the values of these functions at the end and beginning points must be the same.
Split functions helps a lot when creating complex functions.
Splines are piecewise polynomial functions.
Differential geometry is the study of local properties on geometric objects. These include
Continuity
Position/Direction at a specific place at a curve
Various other derivatives.
A "broken" curve is not a curve because these specific curves are required to be continuous.
If f'1(0) != f'2(0) then the combined curve will have an abrupt change. C0 continuity means the positions of the curve are continuous. C1 continuity means that the positions and first derivatives are continuous and etc.
This s=type of continuity is called parametric continuity. Geometric continuity is where the corresponding derivatives have same direction even if their magnitudes are different.
If the C1 continuity is f1'(1) = f2'(0) then the G1 continuity is f1'(1) = k * f2'(0).
Canonical forms of polynomials.
























Comments
Post a Comment