Different cameras for different uses
There are two different camera
types in Three.js: the orthographic camera
and the perspective camera
. In Chapter 3, Working with the Different Light Sources Available in Three.js, we'll take a much more detailed look at how to work with these camera
s, so in this chapter, we'll stick to the basics. Note that Three.js also provides a couple of very specific camera
s for creating scenes that can be viewed using 3D glasses or VR gear. We won't go into detail for those camera
s in this book, since they work exactly the same as the camera
s explained in this chapter.
Note
If you're looking for simple VR cameras, you can use THREE.StereoCamera
to create 3D scenes that are rendered side to side (standard stereo effect), use a parallel barrier (as 3DS provides), or provide an anaglyph effect where the different views are rendered in different colors.
Alternatively, Three.js has some experimental support for the WebVR standard, which is supported by a number of browsers...