Düzenle

Aracılığıyla paylaş


Transforms

The part of Direct3D that pushes geometry through the fixed function geometry pipeline is the transform engine. It locates the model and viewer in the world, projects vertices for display on the screen, and clips vertices to the viewport. The transform engine also performs lighting computations to determine diffuse and specular components at each vertex.

In this section

Topic Description

Transform overview

Matrix transformations handle a lot of the low level math of 3D graphics.

World transform

A world transform changes coordinates from model space, where vertices are defined relative to a model's local origin, to world space. In world space, vertices are defined relative to an origin common to all the objects in a scene. The world transform places a model into the world.

View transform

A view transform locates the viewer in world space, transforming vertices into camera space. In camera space, the camera, or viewer, is at the origin, looking in the positive z-direction. The view matrix relocates the objects in the world around a camera's position - the origin of camera space - and orientation.

Projection transform

A projection transformation controls the camera's internals, like choosing a lens for a camera. This is the most complicated of the three transformation types.

 

Coordinate systems and geometry