Learn how PerspectiveCamera
and OrthographicCamera
affect how your scene is viewed.
PerspectiveCamera mimics how we see in real life: objects farther away look smaller. OrthographicCamera keeps all sizes consistent regardless of depth.
PerspectiveCamera
for immersive 3D views, and OrthographicCamera
for UI, diagrams, or isometric-style games.
PerspectiveCamera(fov, aspect, near, far)
uses real-world perspective.OrthographicCamera(left, right, top, bottom, near, far)
is flat and great for 2D-style rendering.camera.position
and lookAt()
to change the view.