Skip to main content

Graphics in Three Dimensions

  • Chapter
  • First Online:
Python Graphics
  • 6217 Accesses

Abstract

In this chapter, you will learn how to create, translate, and rotate three-dimensional objects in a three-dimensional space. You will also learn how to project and display them on the two-dimensional surface of your computer screen. General movement of an object implies both translation and rotation. I discussed this in two dimensions in the previous chapter. You saw that translation in two dimensions is trivial. Just add or subtract a quantity from the x coordinates to translate in the X direction, similarly for the Y direction. In three dimensions, it is still trivial, although you are able now to translate in the third dimension, the Z direction, simply by adding or subtracting an amount to an object’s z coordinates. Rotation is another matter, however. The analysis follows the method you used in two dimensions but is complicated by the fact that you now are able to rotate an object around three coordinate directions. In this chapter, I will not discuss 3D translation any further but will concentrate instead on 3D rotation.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 34.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2018 B.J. Korites

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Korites, B.J. (2018). Graphics in Three Dimensions. In: Python Graphics. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3378-8_3

Download citation

Publish with us

Policies and ethics