O'Reilly logo

Beginning 3D Game Programming by Tom Miller

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

A World Without a Sky Would Be Black

You implemented a sky box early in this book for Blockers; it was the inside of a dungeon room, and it was a way to encompass the level. Sky boxes are always implemented because without one, you would have an empty area where the objects of your world weren't rendered. A plain black sky isn't realistic unless, of course, your game resides inside a vacuum in space (or maybe a black hole). I don't think the tanks here would work too well in a black hole.

I hope you've been noticing a consistent theme in the implementation of Tankers. The code has been rearranged to form more logical units, and that practice continues for the sky box. Rather than make this code reside within the game engine, you create a new ...

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