views:

135

answers:

2

Hi All,

I am from .net C# background and I want to learn DirectX. I have knowledge of C++ but I am fairly new to graphic world.

I am little confused about how to start learning directx, should I start learning direct directly or buy a basic graphic book like hern and baker and then jump to directx.

Which is the recommended book for learning basic graphic concepts, is it hern and baker? Is there any directx book which will cover graphic concepts as well?

I think that keeping a basic graphics book is allways good, because i can use it as reference anytime

Any suggestions from experts here?

+6  A: 

You say that you have a C# background so I am going to assume you are more comfortable with C# then C++. Also, you say that you have knowledge of C++ so I will assume that you already have an understanding of memory management.

If you just want to learn and become more comfortable with the graphics pipeline you should check out SlimDX and XNA. They both allow you to use DirectX without having to dive into C/C++.

As for whether to learn the theory or API first I don't think you should do either one first. It makes sense to learn them asynchronously. Pick up a book on the theory but mess around with an API at the same time.

I highly recommend XNA. People commonly say that you should stick with C++ if you want to develop games but I strongly disagree. XNA will allow you to learn more high level game concepts in less time than if you use C++ and DirectX alone. You will be able to focus on learning why you are doing something rather than how to manage the memory. If in the future you decide that game development is a serious passion then by all means C++ is the way to go. You will find that XNA's graphics pipeline closely mirrors DirectX 9 and wont have much trouble moving to C++.

Also, DirectX 9 should be good enough for any beginner and it will give you a better understanding of how and why things have changed in 10 and 11. However, if you really want bleeding edge technologies you can try out SlimDX which is a C# wrapper for DirectX.


With all this said, XNA offers many easy to understand samples that you can start playing with on their educational catalog page. Also, check out ziggyware (great collection of xna tutorials).

Also, there are many blogs you can check out. A lot of them have excellent tutorials on them. Here are some off the top of my head:


Finally, here are 2 graphics books that I highly recommend (they are pretty complex and will last you a long time):

They are not directly related to DirectX, but rather they cover the theory every graphics developer should know. (from linear algebra to texture mapping to volumetrix rendering...)

Arriu
Thanks Arriu for sharing. I never expected someone to post such a detailed reply.Is there any directx book you recommend or should I learn by playing around with API's?
Signcodeindie
I would not buy a directx or any other graphics api book. You find that you outgrow most of them in a week or two. Online tutorials (http://www.directxtutorial.com/) should be enough to teach you the basics. You will pick up the rest on your own. However, I highly recommend you get one or more theory books. Most graphics theory books cover all the necessary basics such as the rendering pipeline, linear algebra, vector calculus, etc...
Arriu
Wolfgang Engel posted a book list on his blog yesterday (you should check it out): http://diaryofagraphicsprogrammer.blogspot.com/2009/11/you-want-to-be-graphics-programmer.html
Arriu
A: 

If you have a bit of extra money, I was very impressed with the DirectX graphics courses from http://www.gameinstitute.com. The textbook they provide was very good as far as the other DirectX books I've seen are concerned. The first module DirectX Graphics I starts off with a bit of a math review and some 3D fundamentals before diving into setting up and using DirectX. By the end of the first module you will have built a textured terrain renderer and an indoor scene.

Overall the courses are not that expensive when you consider how much books on the subject cost. I would definitely recommend checking it out!

Casey
Is it a online or a classroom course?
Signcodeindie
It is completely online. They have weekly online classroom meetings that are optional. They have a full textbook that you get in digital form and if you want it, in printed form. They also have numerous labs and complete code samples. The code is also very good. The people that run GameInstitute have been in the industry and know what they are doing. I would suggest going to the site and just looking around and at some of the videos.
Casey