Skip to main content
gamedev.net
🔒 Locked

Direct3D Tutorials?

Started by Chaotick Sep 5, 2009 at 5:11 PM 5 replies 2.1k views
Original Post
Chaotick
Chaotick
I have been coding in C++ for roughly a year now and I have been using OpenGL for a few months, but I am wanting to move on to D3D instead and I am wondering if anyone knows a good place where I could find tutorials on the subject.
alexcg
alexcg
It depends on which version of Direct3D you're going to use.

Here are some tutorials on Direct3D 9:
http://www.two-kings.de/
http://www.codesampler.com/

As for Direct3D 10, I can't recall any good tutorials on it other than the documentation and the Frank D. Luna's book "Introduction to 3D Game Programming with DirectX 10".
burt13
burt13
You'll never learn anything from tutorials (not professional, for newbies)
Read MS Press books about DirectX, D3D and see all Microsoft DirectX SDK samples (you won't find better code than MS code...)
MichaBen
MichaBen
Quote:
Original post by burt13(you won't find better code than MS code...)


Quite the opposite actually, I couldn't recommend anybody to learn DirectX from the tutorials and samples from the DirectX SDK. Over 3000 lines long cpp files that is more C then C++ (not very object orientated, using pointers almost everywhere even when references are more safe and clean), filled with global variables and the code isn't documented very well (meaning of function parameters not explained).

Also, the following code (from the DirectX SDK sample code) can be confusing for new programmers:
float fDeviation, FLOAT fMultiplier=1.0f

Two datatypes with the same name but 1 lowercase and other uppercase. If you are rather new to programming and come across code like this, it can be confusing: are you dealing with 2 different datatypes here, or is C++ not case sensitive at all, or something else.

Following a decent and well written tutorial will be much more helpful. After all coding is not just about getting it working, you will need to understand why it works as well. Well written code that is clean to read will keep you more motivated as well rather as you don't have to puzzle what each variable does when you later want to extend the code.
itzjac
itzjac
Quote:
Quite the opposite actually, I couldn't recommend anybody to learn DirectX from the tutorials and samples from the DirectX SDK.

I completely agree on that, I also first learned OpenGL then DirectX, these are other nice tutorials I used when I learned DirectX
The Ultimate DirectX tutorial

Also, understanding the basic of matrix operations is very useful as well.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.