3-D Visualization Previous page   Next Page

Example -- Dollying the Camera

In the camera metaphor, a dolly is a stage that enables movement of the camera from side to side with respect to the scene. The camdolly command implements similar behavior by moving both the position of the camera and the position of the camera target in unison (or just the camera position if you so desire).

This example illustrates how to use camdolly to explore different regions of an image.

Summary of Techniques

This example uses


First load the Cape Cod image and zoom in by setting the camera view angle (using camva).

Then use ginput to select the x- and y-coordinates of the camera target and camera position.

Previous page  Camera Graphics Functions Example -- Moving the Camera Through a Scene Next page

© 1994-2005 The MathWorks, Inc.