May 2017
Intermediate to advanced
982 pages
22h 42m
English
The target camera works the opposite way. Rather than the position, the target remains fixed, while the camera moves or rotates around the target. Some operations like panning, move both the target and the camera position together.
The following figure shows an illustration of a target camera. Note that the small box is the target position for the camera.

The code for this recipe resides in the Chapter2/TargetCamera directory. The CTargetCamera class is defined in the Chapter2/src/TargetCamera.[h/cpp] files. The class declaration is as follows:
class CTargetCamera : public CAbstractCamera { public: CTargetCamera(void); ...Read now
Unlock full access