Book Image

Three.js Cookbook

By : Jos Dirksen
Book Image

Three.js Cookbook

By: Jos Dirksen

Overview of this book

Table of Contents (15 chapters)
Three.js Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 3. Working with the Camera

In this chapter, we'll cover the following recipes:

  • Making the camera follow an object

  • Zooming the camera to an object

  • Using a perspective camera

  • Using an orthographic camera

  • Creating a 2D overlay

  • Rotating the camera around a scene

  • Matching the rendered view to a resized browser

  • Converting world coordinates to screen coordinates

  • Selecting an object in the scene