3D Projection is any method of mapping three-dimensional points to a two-dimensional plane. As most current methods for displaying graphical data are based on planar two-dimensional media, the use of this type of projection is widespread, especially in computer graphics and engineering.
Axonometric ProjectionAxonometric projection is a type of parallel projection used for creating a pictorial drawing of an object, where the object is rotated along one or more of its axes relative to the plane of projection.
There are three main types of axonometric projection: isometric, dimetric, and trimetric projection. "Axonometric" means "to measure along axes". Axonometric projection shows an image of an object as viewed from a skew direction in order to reveal more than one side in the same picture. Whereas the term orthographic is sometimes reserved specifically for depictions of objects where the axis or plane of the object is parallel with the projection plane, in axonometric projection the plane or axis of the object is always drawn not parallel to the projection plane.
With axonometric projections the scale of distant features is the same as for near features, so such pictures will look distorted, as it is not how our eyes or photography work. This distortion is especially evident if the object to view is mostly composed of rectangular features. Despite this limitation, axonometric projection can be useful for purposes of illustration.
Window-to-Viewport coordinate transformationA world-coordinate area selected for display is called a window. An area on a display device to which a window is mapped is called a viewport. The window defines what is to be viewed; the viewport defines where it is to be displayed.
The window-to-viewport mapping. A point at position (xw, yw) in the window is mapped into position (xv, yv) in the associated viewport. To maintain the same relative placement in the viewport as in the window, we require that:
xv - xvmin / xvmax - xvmin = xw - xwmin / xwmax - xwmin
yv - yvmin / yvmax - yvmin = yw - ywmin / ywmax - ywmin
Solving these expressions for the viewport position (xv, yv), we have Ecuation A:
xv = xvmin + (xw - xwmin)sx
yv = yvmin + (yw - ywmin)sy
where the scaling factors are
sx = xvmax - xvmin / xwmax - xwmin
sy = yvmax - yvmin / ywmax - ywmin
Equations A can also be derived with a set of transformations that converts the window area into the viewport area. This conversion is performed with the following sequence of transformations:
1. Perform a scaling transformation using a fixed-point position of (xwmin, ywmin) that scales the window area to the size of the viewport.
2. Translate the scaled window area to the position of the viewport. Relative proportions of objects are maintained if the scaling factors are the same (sx = sy). Otherwise, world objects will be stretched or contracted in either the x or y direction when displayed on the output device.
The focal lengthIn optics this word is defined as the distance from the lens node to the point at which a ray, which was initially parallel to the optical axis, intercepts the axis after being deflected by the lens. The focal length is given by:
Fl = p x q / p + q
https://www.hackster.io/MrMojoRisin/3d-projection-vol-2-58d546
Comments