learning vc++/directx

Started by
6 comments, last by wisey 10 years, 8 months ago

I need some advice about reading material for learning vc++/directx programming. I am working on some prototypes in visual studio using DirectX. I am trying to demonstrate simple things like how to use c++ to do sprite animation in interesting ways. Specifically, I am working on a graph editor for building nav meshs for bots to use A* pathfinding to find a users own ship (simple sprite). The app checks for user input and re-draws the new position based upon the result. And the bots calculate the shortest path each time through the loop and the language moves the bot closer to the user’s ship.

Anyhoo. I am getting into difficulty with the language and specifically how to implement design patterns. The problem is obviously that I have never read any official tutorial style book about c++ before. I have Stroustrup’s book for reference. And I have followed tutorials, just clearly not enough of them to be able to turn concepts into code. I have also watched a lot of video tutorials.

What I have been told to do by the guru’s on freenode’s #c++ and here (GameDev.net) is to read a book. The guy’s on #c++ have a list of books (some of them are very dated). And one of my thoughts was since I am using vc++ to interact with DirectX that I should buy a book centred around that specifically. Rather than just command line c++ stuff. I am at a loss as to what I should read. And by read, I mean that I want something that I can read cover to cover, word for word. Just to absorb as many skills as I can.

At least if I do this then the guy’s on the forums and in chat can’t fob me off by telling me to go and read a book. I really don’t want to jump back into the code base I have been working on until I have completed a thorough treatment of a decent text book.

So my question is this. Can you recommend a book? I feel at this stage that just one book should be enough. The reason I am coming to you is that you are a professional vc++/DirectX coder amongst other things.

--

Steve Wiseman

Advertisement

Thought I'm not professional, these are really good books:

(Read It) http://www.amazon.co.uk/Practical-Rendering-Computation-Direct3D-11/dp/1568817207/ref=sr_1_13?ie=UTF8&qid=1374537984&sr=8-13&keywords=directx

(Read It) http://www.amazon.co.uk/Introduction-3D-Game-Programming-Directx/dp/1936420228/ref=sr_1_1?ie=UTF8&qid=1374537984&sr=8-1&keywords=directx

And since you mentioned something about how to learn visual c++ based on games, I would take a look at this book (I have not read this!!!):

http://www.amazon.co.uk/Beginning-C-Through-Game-Programming/dp/1435457420/ref=sr_1_3?ie=UTF8&qid=1374537984&sr=8-3&keywords=directx

This PDF is interesting as well (I didn't read it all):

https://www.google.dk/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&ved=0CCsQFjAA&url=http%3A%2F%2Fprelight.googlecode.com%2Ffiles%2FProgramming%2520Vertex%2520Geometry%2520and%2520Pixel%2520Shaders.pdf&ei=xcntUdiaMdHQsga0koG4BA&usg=AFQjCNELUWlP3o70jQzqbMQU8lX-_CDX7g&sig2=1vPuyFS27uHkzog3V3sNNg&bvm=bv.49478099,d.Yms&cad=rja

Good Luck!

FastCall22: "I want to make the distinction that my laptop is a whore-box that connects to different network"

Blog about... stuff (GDNet, WordPress): www.gamedev.net/blog/1882-the-cuboid-zone/, cuboidzone.wordpress.com/

One of the best resources I've found for learning how to use DirectX is RasterTek:

http://www.rastertek.com/tutindex.html

I dont like the rasterteks tutorials, they are not well organized. These http://www.braynzarsoft.net/ are a bit better

I recommend two useful books:

"introduction to 3d game programming with directx 10"

and for math

"3d math primer for graphics and game development"

I second Migi's recommendation. For graphics API novices Luna's book is probably more suited (it also covers the mathematical prerequisites thoroughly). You can download the sourcecode for both books to get a taste and judge for yourself:

Hieroglyph 3 (Practical Rendering)
Introduction to 3D Game Programming with Direct3D 11.0

I one of the authors from the Practical Rendering and Computation with Direct3D 11 book, just for full disclosure. Our book is focused on the Direct3D API, and it uses C++ for all of the code samples which are built upon an open source rendering framework (Hieroglyph 3 like unbird linked above). So there is sufficient content available in the book for you to learn the API in depth, see some sample programs and then be able to examine the code base as well.

However, from your post it sounds to me like you are asking for a book that can teach you both C++ and D3D at the same time. I would recommend doing that in a two step process unless you already know more about computer graphics and are just migrating from a different API. The standard text to get started with C++ is the "C++ Primer" - and make sure you get the 5th edition so that you have the latest C++11 content in it.

If you can cruise through that book, then pick up a Direct3D book after that (or in parallel if you can't wait) and you will be much better off. And of course you can always ask questions here if you get stuck.

Thanks for your replies so far. I also sent a message to somebody working for Ubisoft but he seems to be ignoring every attempt I have made to contact him. Obviously, I would prefer to get advice from a professional so special thanks goes out to Jason Z.

I am going to wait a little longer before I decide how to spend the next year of my life.

--

Steve

This topic is closed to new replies.

Advertisement