Exploring Different Cameras

You may have noticed that we call our camera a PerspectiveCamera. If that name seems oddly specific, that’s because other kinds of cameras exist. For the most part, we want to stick with perspective cameras in 3D coding. Let’s have a look at what a perspective camera is and compare it to another kind of camera that’s sometimes used as well.

A Quick Peek at a Weirdly Named Camera

The other kind of camera is called orthographic. To understand what an orthographic camera does, let’s add a red road that the purple fruit monster can travel on. Add the following after START CODING ON THE NEXT LINE:

​ ​var​ shape = ​new​ THREE.CubeGeometry(200, 1000, 10);
​ ​var​ cover = ​new​ THREE.MeshBasicMaterial({color:​ ...

Get 3D Game Programming for Kids, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.