1 / 22

3d Viewing Illustrated

3d Viewing Illustrated. What you SEE depends on your position. In the real world, what you see depends on where you stand, the direction you look, how you tilt your head, and so on. 3D Versus 2D. In 3D, the y-axis typically points up instead of down.

burt
Download Presentation

3d Viewing Illustrated

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 Viewing Illustrated

  2. What you SEE depends on your position • In the real world, what you see depends on where you stand, the direction you look, how you tilt your head, and so on.

  3. 3D Versus 2D • In 3D, the y-axis typically points up instead of down. • Negative coordinates, which are rarely used in 2D, are quite common in 3D. • Because of this, the origin is at the center of space as opposed to the top-left corner as in 2D

  4. Major Differences between 2D and 3D

  5. Right Handed Coordinate System

  6. Camera Position • Camera positioned at (5, 5, 5): • Looking at the southeast side

  7. Southwest side • Move the camera to position (-5,5,5): • Looking at the southwest side

  8. LookDirection • The lookdirection is a vector that tells the camera where to look. • For the camera below the lookdirection is (-1,-1,-1):

  9. Moving the Camera • Moving the camera does not change the lookdirection:

  10. The lookdirection is based on a lookat point • Changing the lookdirection:

  11. LookAT and LOKDIRECTION • The easiest way to determine the lookdirection is specify a lookat point in the scene and subtract the camera position from it: lookat – camera position • For the above camera position, if the lookat is (0,0,0), then look direction is: • Lookdirection = (0,0,0) – (-5,5,5) = (5, -5, -5)

  12. Southwest view • Given an orthographic camera and the above lookdirection we get the following scene:

  13. The UP Direction • The lookdirection is not enough to get the correct view:

  14. UP Direction not changed

  15. UP Direction Wrong

  16. Correct

  17. Correct

  18. Transform UP Direction

  19. UP Direction Analogy if you're designing a flight simulator, up is the direction perpendicular to the plane's wings, from the plane toward the sky when the plane is on the ground.

  20. Default Camera position

  21. Rotating the Camera • We will call rotation around the look vector (or z axis) Roll. • Rotation around the up vector (or y axis) is called Yaw. • Rotation around the Right vector (x axis) is called Pitch. • Below is a picture of an aircraft showing roll, pitch and yaw in terms of the aircraft's local axis. Note: we can use a similar system for our object rotations

  22. Roll, Pitch and Yaw

More Related