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

Learning about 3D Models

DB supports two common 3D mesh file formats and three file formats used in popular games like Quake III: Arena:

DirectX.X
3D Studio.3DS
Quake.MDL
Quake II.MD2
Quake III.MD3

These file formats are very common in the 3D industry, although most professional games are developed using 3D Studio MAX and Maya, which are high-performance modeling packages with complex file formats. Most of the professional tools provide an exporter for the DirectX format, though.

Loading a Mesh File

In 3D modeling terms, a model is called a mesh. A mesh describes the object more explicitly than the word “model,” because a mesh is comprised of many vertices. A vertex, as you’ll recall from Chapter 18, is a single point, and three vertices are required ...

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