943,884 Members | Top Members by Rank

Ad:
May 22nd, 2009
0

Where to begin? -DirectX

Expand Post »
Alright, I'm a novice in programming DirectX but very adept at c++ in general, and I really want to learn how DirectX works!

I borrowed a book from the local library called "Windows Game Programming for Dummies". Seeing as I'm dumber than a Dummie, I really didn't understand the chapter about "plotting a pixel"; I gave it several tries, but no matter how I did it, it didn't write out a measly pixel! (The stupid library didn't include the CD with the example code, so I can't even study that! )

Now this could be because the color used when plotting it was white, I don't really know.
Anyone have a good link for a really good and basic tutorial on how to plot a pixel with DirectX?
Anyone care to show how it is done?
Similar Threads
Reputation Points: 12
Solved Threads: 6
Junior Poster in Training
ShadowScripter is offline Offline
94 posts
since Apr 2009
May 22nd, 2009
1

Re: Where to begin? -DirectX

You may want to look at some of the resources posted here in the FAQ thread.
Moderator
Featured Poster
Reputation Points: 3239
Solved Threads: 839
Posting Genius
Ezzaral is offline Offline
6,761 posts
since May 2007
May 24th, 2009
0

Re: Where to begin? -DirectX

I've already looked through that post, alas, I've yet to find a tutorial with great quality. Most of the tutorials just skim through the important parts and just display the code (and some don't even do that!)

I mean, how am I supposed to learn something if I get insufficient information?
DirectX 3D tutorial.

I know how to create a window and start the DirectX in fullscreen mode. That's it. Where do I go from here? Seriously. I'm really frustrated.
Reputation Points: 12
Solved Threads: 6
Junior Poster in Training
ShadowScripter is offline Offline
94 posts
since Apr 2009
May 24th, 2009
0

Re: Where to begin? -DirectX

In DirectDraw (2D api) you could set pixels directly, I've not used either for a long time, and I'm pretty sure that DirectDraw was discontinued a while back.

This kind of thing is going to be the way to go in DirectX: http://www.drunkenhyena.com/cgi-bin/...r=2;article=20

Basically, DirectDraw (used to?) be a 2D API with fast functions for blitting and pixel plotting in absolute screen coordinates, DirectX is a 3D API, so you get most efficiency talking to it in terms of 3D primitives ( points, lines, triangles, etc ), textures, and transforms.
Moderator
Featured Poster
Reputation Points: 522
Solved Threads: 64
Veteran Poster
MattEvans is offline Offline
1,091 posts
since Jul 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Game Development Forum Timeline: Help About Tower Defense Game?
Next Thread in Game Development Forum Timeline: Development of FPX-Game engine Episode 2





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC