Important alert: (current site time 7/16/2013 3:33:03 AM EDT)
 

winzip icon

Direct3D Basics

Email
Submitted on: 8/22/2000 3:00:40 PM
By: Drubibu 
Level: Advanced
User Rating: By 16 Users
Compatibility: VB 5.0, VB 6.0
Views: 24065
(About the author)
 
     A really easy and detailed program to introduce you to Direct3D, in the sample you control a 3D ship. The code is heavily documented and simplified, if you're new to direct3D it's a real reccomendation.

 
winzip iconDownload code

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. Afterdownloading it, you will need a program like Winzip to decompress it.Virus note:All files are scanned once-a-day by Planet Source Code for viruses, but new viruses come out every day, so no prevention program can catch 100% of them. For your own safety, please:
  1. Re-scan downloaded files using your personal virus checker before using it.
  2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.
  3. Scan the source code with Minnow's Project Scanner

If you don't have a virus scanner, you can get one at many places on the net including:McAfee.com

 
Terms of Agreement:   
By using this code, you agree to the following terms...   
  1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
  2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.   
  3. You may link to this code from another website, but ONLY if it is not wrapped in a frame. 
  4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


Other 2 submission(s) by this author

 


Report Bad Submission
Use this form to tell us if this entry should be deleted (i.e contains no code, is a virus, etc.).
This submission should be removed because:

Your Vote

What do you think of this code (in the Advanced category)?
(The code with your highest vote will win this month's coding contest!)
Excellent  Good  Average  Below Average  Poor (See voting log ...)
 

Other User Comments

8/22/2000 3:33:53 PMStephan Kirchmaier

This is an excellent learning prog! thanx
(If this comment was disrespectful, please report it.)

 
8/22/2000 5:06:42 PMJon

What did you create the .x file in?
(If this comment was disrespectful, please report it.)

 
8/22/2000 10:02:38 PMDaniel Davies

Jon,

I use 3d Studio Max to make my 3D models, to convert the .3ds to an X file, you can use numerous third party tools such as those available from www.okino.com, however if you have the DirectX SDK, you will have a utility in your DXUtils directory called Conv3DS.exe.
To convert you model and animations simply type:
Conv3DS man.3ds -A
at the command line to generate a .x file!
(If this comment was disrespectful, please report it.)

 
8/22/2000 10:04:41 PMDaniel Davies

p.s. the ones from www.okino.com also convert different file types to .x files

oh, i almost forgot...great code :D
(If this comment was disrespectful, please report it.)

 
9/10/2000 3:54:23 PMHans

excellent code :-)
(If this comment was disrespectful, please report it.)

 
9/17/2000 6:08:06 PMSimon Price

Thanks 4 this! I haven't got a 3D modeller though. That's the only reason why I've not tried to learn D3DRM. But thanks to you I might start now!
(If this comment was disrespectful, please report it.)

 
10/1/2000 3:04:37 PMDaniel Staf

I just mailed you a couple of minutes ago(before I discovered this) I just wonder if it's possible do download the DirectX SDK?
(If this comment was disrespectful, please report it.)

 
10/8/2000 7:16:25 AMSauron

http://msdn.microsoft.com/code/sample.asp?url=/msdn-files/027/000/229/msdncompositedoc.x ml

That
is the DirectX SDK but its really big 128mb
(If this comment was disrespectful, please report it.)

 
12/1/2000 3:42:19 PMEran

hello. I got a gib problem in vb6.
I want to start a 3d game but I don't know the first thing about it.

I got *.X files from studio max 2.5 but I got no example on how to use them.

please tell me...
thank you
(If this comment was disrespectful, please report it.)

 
12/24/2000 4:33:04 AMLuke Handy

Very nice. I've been meaning to learn Direct 3D stuff, now I can do it without the headaches.
(If this comment was disrespectful, please report it.)

 
4/27/2003 3:38:22 PMSpencer Eick

Great job. To zoom in on the ship, add this to the DX_Input sub:

If DI_State(DIK_DOWN) <> 0 Then
FRCam.SetPosition FRCam, 0, 0, 1
End If
(If this comment was disrespectful, please report it.)

 

Add Your Feedback
Your feedback will be posted below and an email sent to the author. Please remember that the author was kind enough to share this with you, so any criticisms must be stated politely, or they will be deleted. (For feedback not related to this particular code, please click here instead.)
 

To post feedback, first please login.