See also: rendering, imaging, illumination, colour, GLSL
Coordinate Frames
Let be the original basis and be the new basis
Then:
- is , how to transform the coordinate
- is how much of we need to make one
- is how much of we need to make one
- is , how to transform the coordinate
- is how much of we need to make one
- is how much of we need to make one
- is , the translation of the entire frame
- is how much of we need to get from to
- is how much of we need to get from to
The translation from to can be represented as
Transformation Matrices
Translate(x,y,z)
Rotate(z,theta)
Scale(x,y,z)
Transformations
- Object Coordinate System: modeling transformation
- World Coordinate System: viewing transformation
- Viewing Coordinate System (Camera): projection transformation
- Clipping Coordinate System: /h
- Normalized Device Coordinate System (NDCS): viewport transformation
- Device Coordinate System
In a scene hierarchy, the Camera Coordinate Frame () is generally the root.
Transformations in scene graphs are written right to left, starting with source frame and ending with target frame.
Viewing Transformation
- Defined using
- eye point
- target point
- up vector