O'Reilly logo

WebGL Beginner's Guide by Brandon Jones, Diego Cantor

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Basic camera types

The following are the camera types that we will discuss in this chapter.

  • Orbiting camera
  • Tracking camera

Orbiting camera

Up to this point, we have seen how we can generate rotations and translations of the world in the world or camera coordinates. However, in both cases, we are always generating the rotations around the center of the world. This could be ideal for many cases where we are orbiting around a 3D object such as our Nissan GTX model. You put the object at the center of the world, then you can examine the object at different angles (rotation) and then you move away (translation) to see the result. Let's call this type of camera an orbiting camera.

Tracking camera

Now, going back to the example of the first person shooting ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required