Sign in to follow this  

DirectX books vs. Samples in DX9.0c SDK

This topic is 3737 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
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 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

This topic is 3737 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.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this