I need help with Direct3D

Started by
9 comments, last by SnpProgrmr 24 years, 7 months ago
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

Advertisement
A book that I have found that answered alot of my D3D questions was Windows Game Programming For Dummies. You may want to pick it up.
As i remember, here is some examples, including bare bones (maybe) http://www.darwin3d.com/gamedev.htm
or here http://www.gdmag.com/

FlyFire/CodeX
http://codexorg.webjump.com

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.
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.
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.
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

Graphix Coding @Skullpture Entertainmenthttp://www.skullpture.de
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

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

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

This topic is closed to new replies.

Advertisement