TW's Camera Setup

This page illustrates how TW sets up a camera given only the scene bounding box and the desired FOVY. The scene has a blue box matching the scene bounding box, and a green wireframe sphere matching the scene bounding sphere.

There are two canvases (teal outlines):

Additional legend:

Camera Setup Demo

This demo shows a TW.camera object based on a THREE.PerspectiveCamera() object.

Here are the functions that set up this camera:


and, crucially, this one: