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

Testing 3D Animation

Let’s test the theory you’ve learned about so far with a larger program. The AnimateModel program loads up a 3D model that was borrowed from a 3D file collection called DarkMATTER 2. This collection is available for a very reasonable price from The Game Creators at http://www.thegamecreators.com, and contains about a hundred fully animated models, for about the price of a retail game.

The AnimateModel Program

The AnimateModel program loads up the Samurai.x model file and renders it at the center of the origin, which is intersected by the three axes (X, Y, and Z). Figure 20.1 shows the model, with the camera zoomed in. You can use the left and right mouse buttons to rotate the camera around the origin, and the mouse wheel ...

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