O'Reilly logo

3D Game Programming for Teens, Second Edition by Eric Grebler, Maneesh Sethi

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

Chapter 7. Lights and Cameras

As you’ve seen from the previous chapters, two of the essential components of your Blitz3D programs are lights and cameras. In fact, in every program we’ve created so far, we’ve created at least one light and one camera by entering the following code:

camera=CreateCamera()
light=CreateLight()

Blitz 3D allows you to do so much with both lights and cameras. You can change the type of lights, as well as their strength and position; you can tie the camera to objects, add multiple cameras, and rotate and move the camera, among other things. In this chapter, you’ll be using some of the techniques you learned in the previous chapters on creating and moving objects, so just be sure you have a good grasp on those chapters ...

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