411 REFERENCE · Wikibooks
DirectX/10.0/Direct3D
Reference material by Wikibooks contributors. This retains its source identity and is not 411 news reporting.
Goals
This book will teach you to use Direct3D, covering various topics such as lighting, normal mapping, texturing and more.
Requirements
The DirectX 10 tutorials are written using C++ with HLSL and use shader version 4.0 and 5.0. Please ensure that your hardware can support these. Running on software mode has some problems, especially being terribly, horribly slow.
Before writing any graphics code we'll need to have the tools to do so. The first of these tools is a compiler that is preferably built into a nice IDE. The one I use and will be supplying project files for is Visual Studio 2010. There are several others available and some are even free off the net. I'll leave that up to you to decide which one you prefer.
The second tool you will need is the DirectX SDK. It can be downloaded from Microsoft's website for free. After downloading and installing the SDK you will have the files necessary to compile DirectX programs. You will also notice it comes with samples, tools, and documentation. The documentation is pretty good, it also has some very simple examples under the DirectX 10 tutorials section which also applies to DirectX 11. The tools that come with it are also useful, we'll be using the DDS texture tool quite often. The sample browser also provides some simple examples to achieve certain effects you may be looking to do. The samples will generally also have some of the new features of the latest SDK demonstrated.
The June 2010 SDK can be downloaded at: http://www.microsoft.com/download/en/details.aspx?displaylang=en&id=6812
With both installed you can now setup your IDE to work with the DirectX 11 SDK. Please note that some IDEs will need to be installed first before installing the DirectX SDK.
Credits
This book is a copy of Craig's work at http://rastertek.com/. All credit shall go to him. He's putting some hard work into this.
Index
01thumb|150px|link=/10.0/Direct3D/Setting_up_DirectXChapter 01: Setting up DirectX11 with Visual Studio02Chapter 02: Creating a framework and window03Chapter 03: Initializing DirectX 1104Chapter 04: Introduction to buffers, shaders and HLSL05Chapter 05: Texturing06Chapter 06: Diffuse lighting07Chapter 07: 3D Model Rendering08Chapter 08: Loading Maya 2011 models09Chapter 09: Ambient Lighting10Chapter 10: Specular lighting11Chapter 11: 2D Rendering12Chapter 12: Font Engine13Chapter 13: Direct Input14Chapter 14: Direct Sound15Chapter 15: FPS, CPU Usage and Timers16Chapter 16: Frustum Culling17Chapter 17: Multitexturing and Texture Arrays18Chapter 18: Light Maps19Chapter 19: Alpha Mapping20Chapter 20: Bump Mapping