Sign in to follow this  
wisey

learning vc++/directx

Recommended Posts

wisey    144

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

 

 

Share this post


Link to post
Share on other sites
Migi0027    4630
Jason Z    6436

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.

Share this post


Link to post
Share on other sites
wisey    144

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

Share this post


Link to post
Share on other sites

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