O'Reilly logo

DarkBASIC Pro Game Programming, Second Edition by Joshua R. Smith, Jonathan S. Harbour

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Controlling the Camera

You have already seen some of the possible uses for the camera earlier in this chapter, such as moving it around the perimeter of a scene instead of moving individual objects in the scene—a very useful technique, particularly when you just want to show off a 3D model that you have loaded. The camera is the most important aspect of the 3D engine, and DB is no exception, although support for multiple cameras is a fascinating idea. The concept of a “camera” in 3D graphics is abstract. As far as DB knows, there is a 3D world and there really is no computer screen or monitor. The 3D objects, lights, and cameras will move around and do their thing regardless of whether someone is watching. (In this sense, the word “watching” ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required