• FEATURED

View more

View more

View more

### Image of the Day Submit

IOTD | Top Screenshots

### The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.

# Decent Dx 10 Tutorial with normal explanation

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

2 replies to this topic

### #1Wrath87  Members

Posted 09 April 2012 - 11:18 AM

Greetings,

I've been entrusted with a development of a simple teaching software in different kind of curves & surfaces. The API which I should be using is DirectX 10. I started to read several tutorials available on the internet along with the following books:

http://www.amazon.com/Beginning-DirectX-10-Game-Programming/dp/1598633619

http://www.amazon.com/Introduction-3D-Game-Programming-DirectX/dp/1598220535/ref=pd_sim_b_1

Now these books are trully great for starting, does not answer my questions. The same problem goes for the online tutorials, and don't take it personally but I find them like: "Here's the nothing bite it". I barely could understand the process of initializing in depth from these books and tutorials.

Currently I can easily initialize a simple Direct3D interface. Now to go on I don't know what to read. It is trully a great idea to draw a triangle which vertices are statically given but what if I want to use dynamic data? Till now I just have a slight guess of what it's all about. So correct me if I get this wrong please:
So if I get this right with the init process (Create SwapChain, Device, RenderTargetView and Viewport) we define the graphical pipeline.
With the different kinds of HLSL shaders we define how a particular part of the pipeline is working.

Now what I couldn't figure out:

How does this rendering thing works in particular in D3D? - Given an empty initialized D3D interface, how can I draw different kind of objects on specific user interactions? Like a mouseclick is done on the screen, and the program should create a a vertex on that particular point with (x,y,1,1) homogenious coordinates. So it's great to actually draw anything with statically given vertices but what if I have dynamic resource?

Also what's the prurpose of Vertex Buffers? - I don't think what are they used for. I know about that, but how to manage them? Should I have a simple vertex buffer for all the objects that are to be drawn onto the screen or one vertex buffer for each element? Same goes for shaders.

You see I'm missing the in depth information. I want to understand the concepts and not to drag some basic example and learn nothing from it. It can helpfor other people of course just not for me. I want to get the answer for the mythical "WHY?" questions. And obviously from the mentioned sources I didn't got any. So if any of you could give me any link to a decent well written tutorial (Can be zero code also, I can write that by myself just give me that d4mm3d in depth information that the DX works like THIS because of THAT particular reason. We use THIS tool to manage THAT goal. Writting down some code which can be managed to put together using MSDN won't help a bit.

Thanks for every response - recommendation.

Cheers,
Joe

### #2bglanzer  Members

Posted 09 April 2012 - 07:45 PM

http://rastertek.com/

That is one of the better sites for learning directx. Between that site and the documentation included with the SDK you should be able to figure everything out. On some part though the tutorials are not going to help you and your going to have to use your own programming logic and think about how to program what you want. Tutorials can teach you everything, some of it you have to figure out on your own.

Also Frank Luna's book is one of the best there is for learning D3D10 and if you read it, it teaches you everything that you’re asking about. Advanced 3D Game Programming with DirectX10 just about teaches you how to program a game engine using DirectX10 so I don’t think it’s a lack of content or instruction.

Brendon Glanzer

### #3Wrath87  Members

Posted 10 April 2012 - 02:03 AM

Thank you very much I really appreciate it. I'll go through the tutorials provided on the website and see if I can understand it all.
Thanks again.

Regards,
- Joe

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.