Sign in to follow this  
jozsef.horvath

Decent Dx 10 Tutorial with normal explanation

Recommended Posts

jozsef.horvath    110
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:
[indent=1][url="http://www.amazon.com/Beginning-DirectX-10-Game-Programming/dp/1598633619"]http://www.amazon.com/Beginning-DirectX-10-Game-Programming/dp/1598633619[/url][/indent]
[indent=1][url="http://www.amazon.com/Introduction-3D-Game-Programming-DirectX/dp/1598220535/ref=pd_sim_b_1"]http://www.amazon.com/Introduction-3D-Game-Programming-DirectX/dp/1598220535/ref=pd_sim_b_1[/url][/indent]
[indent=1][url="http://www.amazon.com/Advanced-Programming-DirectX-Wordware-Graphics/dp/1598220543/ref=sr_1_1?s=books&ie=UTF8&qid=1333990946&sr=1-1"]http://www.amazon.com/Advanced-Programming-DirectX-Wordware-Graphics/dp/1598220543/ref=sr_1_1?s=books&ie=UTF8&qid=1333990946&sr=1-1[/url][/indent]
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:
[i] So if I get this right with the init process (Create SwapChain, Device, RenderTargetView and Viewport) we define the graphical pipeline.[/i]
[i] With the different kinds of HLSL shaders we define how a particular part of the pipeline is working.[/i]

Now what I couldn't figure out:
[indent=1]How does this rendering thing works in particular in D3D? - [i]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?[/i][/indent]

[indent=1]Also what's the prurpose of Vertex Buffers? - [i]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.[/i][/indent]

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 "[i]WHY?[/i]" 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 [sub]d4mm3d [/sub]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

Share this post


Link to post
Share on other sites
bglanzer    482
[url="http://rastertek.com/"] [/url]

[url="http://rastertek.com/"]http://rastertek.com/[/url]

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.

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