Cameras in three.js

If you want to make a three.js project you are going to want to know a thing or two about how to go about working with cameras. In three.js there are a few cameras to work with, but typically you will want to work with a perspective camera most of the time. This post is about the camera class that is shared across all cameras, and can be thought of as a kind of home base for all content on cameras in three.js content on my site here at github pages.

The Camera Class

The actual Camera Class is the base Class for all camera used in three.js. This class just gives a few properties and methods for doing things like cloning the camera.

Camera Class Inherits from Object3D

All instances of Camera gain a whole bunch of common properties and methods from Object3D. This allows for me to easily work with the camera by using methods like lookAt.

Perspective Camera

read full post on perspective Camera

The most commonly used camera might be the perspective camera, and if you are only going to stick with one, it might be a good idea to make it this one. The perspective camera mimics the way that the human eye actually sees, and often that is what is desired.

Conclusion

Sorry that this post is a little thin, I might expand on it more though as I make more demos on three.js.