DirectX/10.0/Direct3D




Collection creator (disable)

DirectX/10.0/Direct3D

From Wikibooks, open books for an open world
< DirectX
The latest reviewed version was checked on 12 February 2012. There are 6 pending changes awaiting review.
Jump to: navigation, search

Contents

[hide]

[edit] Goals

This book will teach you to use Direct3D, covering various topics such as lighting, normal mapping, texturing and more.

[edit] 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.

[edit] 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.

[edit] Index

01
Chapter 01: Setting up DirectX11 with Visual Studio02Chapter 02: Creating a framework and window
03Chapter 03: Initializing DirectX 1104Chapter 04: Introduction to buffers, shaders and HLSL
05Chapter 05: Texturing06Chapter 06: Diffuse lighting
07Chapter 07: 3D Model Rendering08Chapter 08: Loading Maya 2011 models
09Chapter 09: Ambient Lighting10Chapter 10: Specular lighting
11Chapter 11: 2D Rendering12Chapter 12: Font Engine
13Chapter 13: Direct Input14Chapter 14: Direct Sound
15Chapter 15: FPS, CPU Usage and Timers16Chapter 16: Frustum Culling
17Chapter 17: Multitexturing and Texture Arrays18Chapter 18: Light Maps
19Chapter 19: Alpha Mapping20Chapter 20: Bump Mapping
What do you think of this page? Please take a moment to rate this page below. Your feedback is valuable and helps us improve our website.
Reliability: Completeness: Neutrality: Presentation:
Personal tools
Namespaces
Variants
Actions
Search



Game Developer Leegoon copyright all right reserved since 2010.

Comments

  1. Greetings! Very useful advice within this article!
    It's the little changes that produce the largest changes. Many thanks for sharing!

    My blog ... Batman Games

    ReplyDelete

Post a Comment

덧글쓰기 기능 있는거 아시죠? ㅋㅋ