O'Reilly logo

Real-Time 3D Rendering with DirectX® and HLSL: A Practical Guide to Graphics Programming by Paul Varcholik

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 15. Models

In this chapter, you learn how to use 3D models in your applications. You integrate a third-party library for importing myriad file formats, and you author a set of classes to represent models at run-time. Along the way, you get some more hands-on experience creating DirectX applications.

Motivation

Now that you’ve authored a couple applications, and you’ve manually specified vertices and indices, you’re probably thinking about a better way to do this. Clearly, you cannot hard-code the vertices for every object you’ll render. Instead, you’ll get your objects from an artist who uses a 3D modeling package such as Autodesk Maya or 3D Studio Max. Your job is to read these assets at runtime and extract the data necessary to render ...

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