Creating and displaying a 3D model

In the previous Creating a shader using DGSL recipe, you created a shader that applies a texture to a predefined model. However, most applications will need more variety than the default models offered. Fortunately, Visual Studio provides a mechanism for creating your own 3D models.

Visual Studio offers a fairly basic 3D modeling tool, and while it's nowhere near as fully featured as Maya or other specialist modeling tools, it does come in the box, and it meets the needs of the homebrew developer, or those simply wanting to rough in some models or tweak some properties of a model supplied by a designer.

Getting ready

This recipe uses the shader from the previous Creating a shader using DGSL recipe. So, if you haven't ...

Get Visual Studio 2015 Cookbook - Second Edition now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.