1 / 20

3D transformation and viewing

3D transformation and viewing. UNIT - 5. 3D Point. We will consider points as column vectors . Thus, a typical point with coordinates (x, y, z) is represented as:. (into screen). Representation of 3D Transformations. Z axis represents depth Right Handed System

denver
Télécharger la présentation

3D transformation and viewing

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 3D transformation and viewing UNIT - 5

  2. 3DPoint • We will consider points as column vectors. Thus, a typical point with coordinates (x, y, z) is represented as:

  3. (into screen) Representation of 3D Transformations • Z axis represents depth • Right Handed System • When looking “down” at the origin, positive rotation is CCW • Left Handed System • When looking “down”, positive rotation is in CW • More natural interpretation for displays, big z means “far”

  4. Translation • Objects are usually defined relative to their own coordinate system. We can translate points in space to new positions by adding offsets to their coordinates, as shown in the following vector equation. P’ = T . P

  5. Translatinga point with translation with vector T = (tx,ty,tz). x’ = x + tx y’ = y + ty z’ = z + tz

  6. 3D Translations. • An object is translated in 3D dimensional by transforming each of the defining points of the objects.

  7. Rotation • Rotations in three-dimensions are considerably more complicated than two-dimensional rotations. • In general, rotations are specified by a rotation axis and an angle. • In two-dimensions there is only one choice of a rotation axis that leaves points in the plane.

  8. Rotation about x axis

  9. Rotation about z axis Rotation is in the following form :

  10. 3D Transformations: Rotation • One rotation for each world coordinate axis

  11. P is scaled to P' by S: 3D Scaling Called the Scaling matrix S =

  12. 3D Scaling • Scaling with respect to the coordinate origin

  13. 3D Scaling • Scaling with respect to a selected fixed position (xf, yf, zf) • Translate the fixed point to origin • Scale the object relative to the coordinate origin • Translate the fixed point back to its original position

  14. 3D Scaling

  15. 3D Reflections • About an axis:equivalent to 180˚rotation about that axis

  16. 3D Reflections

  17. 3D Shearing • Modify object shapes • Useful for perspective projections: • E.g. draw a cube (3D) on a screen (2D) • Alter the values for xand y by an amount proportional to the distance from zref

  18. Shears

More Related