Jump to content
  • Advertisement
Sign in to follow this  
fuzzlog

DirectX books vs. Samples in DX9.0c SDK

This topic is 3985 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I just spent the last 3 weeks studying from "Programming Role Playing Games with DirectX, 2nd Edition" Even though I knew of all the errors that would eventually happen because it was based on DirectX 9.0 and I have installed DirectX 9.0c on my computer, I figured I would benefit from the learning experience of researching the incompatibilities and fixing them. After 3 weeks of research and hair pulling I still could not get the code to compile without errors (couldn't find enough info). Today I found out that the "Microsoft DirectX SDK (August 2007)" (and probably all older ones for that matter), come with a "Samples" folder.... After giving a quick look through some of the samples, I come to realize that the code look NOTHING like what has been shown in the book. Techniques and function calls are completely different. So, I guess the purpose to my whining is to ask, what's better to learn from, books or SDK samples? if my purpose is to learn enough to work in the industry as a game developer? Any info will be greatly appreciated. fuzzlog

Share this post


Link to post
Share on other sites
Advertisement
There are plenty of simple directx samples on the net. They are very well commented and in few hundred of line code you can learn how to use directx interface....
One good start will be for example this

Share this post


Link to post
Share on other sites
I may not be typing the correct search words in google then. About 90% of the samples relevant to what I was working on in the last 3 week have been geared toward DirectX 9.0 and below. I have been working with .X files and meshes. I'm pretty much a DirectX noob, so sample code really does not do much good unless it comes with a tutorial which is what I have had trouble finding for DirectX 9.0c

Share this post


Link to post
Share on other sites
Well, well, what do you know. Live, meander and learn!! It turns out that the SDK mentioned above also comes with a folder named "Tutorials" with the following content folders:


HLSLWorkshop
Tut01_CreateDevice
Tut02_Vertices
Tut03_Matrices
Tut04_Lights
Tut05_Textures
Tut06_Meshes

Share this post


Link to post
Share on other sites
The best book for learning Direct3D is Introduction to 3D Game Programming with DirectX 9.0 by Frank Luna. Sample code can be found on his website at moon-labs.com

Share this post


Link to post
Share on other sites
The DX SDK has some great samples in there. There's basic tutorials for getting you started, samples for basic shader usage, and samples for mor advanced techniques (Shadow maps, shadow volumes, post processing, skinning, HDR, etc.).

Just go to the sample browser in the program group for the DX SDK, and have a look. When you launch the samples from there, it will automatically bring up the corresponding page on that sample in the DX documentation.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!