Archived

This topic is now archived and is closed to further replies.

SnpProgrmr

I need help with Direct3D

Recommended Posts

Guest Anonymous Poster
I was going to ask the same question, good thing I read this first. If anyone replys with a bare-bones example, then I would really like a copy.

Pseudo_me@email.com

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Wizard, Windows Game Programming for Dummies *doesn't* have any Direct3D stuff. Are you sure your not thinking Tricks of the Windows Game Programming Gurus? I believe that has a short Direct3D book on the CD.

Share this post


Link to post
Share on other sites
Yes, I stand corrected. It does not cover Direct3D specifically. However, it was very helpful to me to learn how to set up the whole windows environment in preparation. It answered alot of questions (fundamentals) I had. The Awesome Power of Direct3D/DirectX, although only version 5.0, was good. The code got confusing at times, but overall it was a help. DX7.0 books are due out in a couple months.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I for one think that microsoft makes the worst sample applications. They use a format that is imposible to follow, and it takes hours to extact the smallest bit of usefull information. Now, there must be some place on the internet that is offering that bare bones D3DIM, using there own code.(not that d3dframe crap) All I want is some code to show me how to create textures properly, and I can't seem to find this anywhere.

Share this post


Link to post
Share on other sites
Yeah, the source is crap ! You need much time, but after a while and you stepped throught their notation (a mix between hungarian and something else), it isn't that hard. For creating textures, why not look into the D3D_Textr.cpp, it's a bit hard to understand, but working through the whole code (and understanding it) helps much.

CU

------------------
Skullpture Entertainment
#40842461

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
I have read through d3dutil_texture.cpp ...or whatever it is called. I have a few questions about it. First off, why do they create a temporary surface, and then copy the bitmap into it, and then blt that onto the texture surface? Isn't that a wait of time? Why not copy the bitmap strait into the texture surface? Also, why do they keep the HBITMAP valid, doesn't this hold the bitmap in system memory? why would they need it, if they have the texture surface?

If you just wanna email some answers, instead of posting, it's pseudo_me@email.com

Share this post


Link to post
Share on other sites
I agree with you, the SDK examples suck. I finally got tired of their examples and all the other ones on the net that dont work and have started compiling my own examples as I learn it.

I finally got some basic primitives working on the screen and am in the process of "cleaning" the code that has been thrown together.

I will give you an email when I have something "presentable."

AG

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Just like arrogantgod, I got sick of looking for examples, and just started testing everything I could. I figured it out pretty well, and would like to offer my source to anyone looking for something simple. I also have a half create astroids game, if anyone wants to look at that. Just send me an email at Pseudo_Me@email.com, and I'll send over the source. Also you can contact me at ICQ# 10076314.

Share this post


Link to post
Share on other sites
I need some help with D3D.
No web site that I've gone to so far has a Direct3D sample that gives only the bare basic in Win SDK format. So I'm asking if anyone would be kind enough give me a very easy sample with comments. Assume that the WinMain and WndProc is already defined.
Thanks

Share this post


Link to post
Share on other sites