Important alert: (current site time 7/16/2013 3:17:50 AM EDT)
 

winzip icon

ERacer - Industrial Quality 3D

Email
Submitted on: 2/16/2001 9:21:30 AM
By: Wolfgang Kienreich  
Level: Advanced
User Rating: By 101 Users
Compatibility: VB 6.0
Views: 45315
author picture
(About the author)
 
     ERacer demonstrates industrial quality 3D graphics using Microsoft DirectX7 and Visual Basic. You can download the program and sourcecode right now and start exploring the 3D world using one of two agrav fighters, at daytime or nighttime, on one of several terrains. You can even try to defend your base against attacking alien fighters. ERacers features include true 3D terrain, lensflares, dynamic lighting, texture animation, mipmapping, mesh animation, decals, alphatranslucency, interactive interface, sizable viewport, true 3D sound, complex physics, fighter ai and more. Enjoy! System requirements: P166 (hot 3D accellerator) or PIII (older 3D accellerator), Windows 95/98/00/ME, Microsoft DirectX7, Joystick (optional), Soundcard (optional). BUG FIXES (thank you for the reports, related feedback deleted): FEB16 Fixed zipfile subdirectory problem FEB17 Joystickless mode fixed FEB 25 Uploaded correct zip, joystickless mode *truely* fixed (sorry for the troubles)

 
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 5 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
2/16/2001 1:10:25 PMAlmar

This program should have much more votes already... it's awesome!



(If this comment was disrespectful, please report it.)

 
2/16/2001 2:13:00 PMSimon Price

Simply the coolest VB 3D graphics demo ever! Well done. Everything worked without a joystick too. Only problem was that it crashes on exit, so nothing get's cleaned up. I don't think that there's anything wrong with the source though, more likely my computer. Another well deserved 5/5 vote.
(If this comment was disrespectful, please report it.)

 
2/16/2001 3:11:04 PMRobert Rayment

3rd download fine now. Moving the source code to the same root as the EXE gets thay working. Controls backwards, forwards and to the left- no right turn - intended? Brilliant anyway 5/5.
(If this comment was disrespectful, please report it.)

 
2/16/2001 3:30:58 PMJeff Kern / Lucky S Designs

Sweet code man! I have always wanted to make a 3D game, and this will do the ticket!

All of the other 3d engines don't compete with yours! Your code is sweet!

Jeff
(If this comment was disrespectful, please report it.)

 
2/17/2001 5:08:27 AMNuno Sousa

AWESOME!!!!!!!!!!!!!!!!
(If this comment was disrespectful, please report it.)

 
2/17/2001 6:37:48 AMRichard Hayden

Incredibly nice. I've never bothered with DX7RM mode, it looks like you can get a lot done with minimal code. Are you going to release a commercial game, or have you already? Have you made anything similar using Immediate mode? Good luck!
(If this comment was disrespectful, please report it.)

 
2/17/2001 7:22:22 AMNLS - Nonlinear Solutions

Regarding DX7RM, its a shame that Microsoft is discontinuing further development. If you want to do something like Eracer in IM, you have to develope your own frame hierarchy, making for much code and longer development. On the other side, Farenheit is coming up and is said to fill the gap. Lets hope so! Regarding IM, check out Eye3D, an older demo of mine also available here. Thanks for the votes to all of you, by the way!

Wolfgang Kienreich
NLS - Nonlinear Solutions
(If this comment was disrespectful, please report it.)

 
2/17/2001 9:41:08 AMDerek Tremblay (Khenshin)

this source is very cool
(If this comment was disrespectful, please report it.)

 
2/17/2001 10:52:36 AMSimon

This code is great! I needed to know how to add bitmaps to objects and how to make the bulets move. THX PS: Is it ok if I put the game on my site?
(If this comment was disrespectful, please report it.)

 
2/17/2001 11:39:54 AMJonathan Jarvis

WOW! This is cool!
(If this comment was disrespectful, please report it.)

 
2/17/2001 1:35:34 PMNiall Mooney

My GOD, that's a good program
(If this comment was disrespectful, please report it.)

 
2/18/2001 5:11:26 AMNLS - Nonlinear Solutions

A little goodie for those of you who like racing ... you can create your own maps!

Generate a 256-greyscale-bitmap using a graphic program and save it in the MAP subdirectory using prefix numbers like those of the provided maps and the .MAP extension. Make sure your map is of square size, between 30 and 65 pixel side length. Smoothen sharp edges. Note: The more non-black areas, the slower the application will run.

Have fun,

Wolfgang Kienreich
NLS - Nonlinear Solutions
(If this comment was disrespectful, please report it.)

 
2/19/2001 11:23:34 AMCode Master

Very good sample
(If this comment was disrespectful, please report it.)

 
2/19/2001 1:35:25 PMKevin Wiegand

Redownloaded on 2/19 - not sure what's wrong, program still randomly locks up my computer, and the ship still moves around in circles.
(If this comment was disrespectful, please report it.)

 
2/25/2001 4:58:48 AMAndreas Svensson

The #1 pro has entered and is not leaving...the #1, no doubt
(If this comment was disrespectful, please report it.)

 
2/25/2001 5:41:05 AMegbert

the ship still moves around in circles
:(
(If this comment was disrespectful, please report it.)

 
2/25/2001 7:03:57 AMNLS - Nonlinear Solutions

Sorry to all of you, provided wrong zip after last bugfix. I've just uploaded the right zip and now ERacer truely works without a joystick. Thank you for your patience, and please vote for this program!

Wolfgang Kienreich
NLS - Nonlinear Solutions
(If this comment was disrespectful, please report it.)

 
2/25/2001 2:52:17 PMegbert

Thx but i have vb5 and it only works on vb6 i tryed and get some errors so can you please upload the exe to?
(If this comment was disrespectful, please report it.)

 
2/25/2001 6:59:10 PMOddOne

VERY nice code. I'm rather surprised it's even possible to pull that off with VB. :-)

oO

(If this comment was disrespectful, please report it.)

 
2/26/2001 1:57:38 AMNLS - Nonlinear Solutions

Hi there,

I'm getting a lot of requests regarding uploading the executable. Sorry, but Planet Sourcecode does no longer support uploading executables due to the security problems involved with this. Please mail me directly to receive the executable file, its just 160kB in size.

Thank you,

Wolfgang Kienreich
NLS - Nonlinear Solutions
(If this comment was disrespectful, please report it.)

 
2/26/2001 5:56:08 AMegbert

i know all about the security problems :O i had download some where some thing and when i started my pc stucked when i rebooted my hard disk was no longer functionnal! btw this game is so cool!!!!! sell it!
(If this comment was disrespectful, please report it.)

 
2/26/2001 6:42:36 AMDavid Smejkal

D A M N... 5 globes, no doubt!
(If this comment was disrespectful, please report it.)

 
3/2/2001 10:12:21 PMViper Tech.

How is the skin.bmp applied to the enemy craft? I was gonna add a function to make them have random textures, but I can find no references to skin.bmp. Could you please tell me how the texture is applied?
(If this comment was disrespectful, please report it.)

 
3/3/2001 3:06:44 AMsynaptor

unbelievable! greatest code i have seen done in vb. 5 globes+ :-)
(If this comment was disrespectful, please report it.)

 
3/4/2001 4:31:18 AMPowersoft Programming

"System requirements: PII-233 (PIII recommended)"

Don't think so... IT RAN GREAT ON MY P133 WITH VOODOO 3!! This code is the best I have ever seen here!
(If this comment was disrespectful, please report it.)

 
3/4/2001 7:55:41 AMNLS - Nonlinear Solutions

Thanks for the very positive feedback, but small wonder, with a Voodoo III in place I assume you you could run it on a 80286 ... ;-)

Wolfgang Kienreich
NLS - Nonlinear Solutions
(If this comment was disrespectful, please report it.)

 
3/7/2001 3:16:53 PMWar

The game is cool, but nothing Aggravates me more that a program that REBOOTS YOUR MACHINE! upon exiting.
(If this comment was disrespectful, please report it.)

 
3/9/2001 8:31:05 AMJames Hardwick

When I ran this in VB it came up with an Automation error. I clicked debug and my P.C. crashed. When I made the exe it came up with the same message but didn't crash. I have Direct x 7 and a compatible PC. Can anyone help?
(If this comment was disrespectful, please report it.)

 
3/9/2001 11:46:59 AMIain Nicol

This is so cool!!!
I never thought anything could be done in RM, but I'm wrong. Well done.
(If this comment was disrespectful, please report it.)

 
3/9/2001 11:48:22 AMIain Nicol

PS Works fine on my PC
(If this comment was disrespectful, please report it.)

 
3/10/2001 6:46:06 AMNLS - Nonlinear Solutions

Hi there,

Some comments regarding crashes and errors...

I cant do a thing about errors on exit. The gfx card driver and D3DRM instance are supposed to release all ressources on termination. But D3DRM is dirty, and so are many driver versions.

I *could* do something about the automation errors on startup, putting in a message box telling you ERacer wont run. Ask yourself: Would that be less frustrating? Its just a demo after all.

On errors in general: I've tested Eracer on three different machines having different gfx cards, configurations and operating systems. I do not have the ressources for the kind of testing a commercial production would receive before being released. I'm sure you understand that.

Wolfgang Kienreich
NLS - Nonlinear Solutions
(If this comment was disrespectful, please report it.)

 
3/13/2001 9:53:52 PMJason Brimblecombe

This is probably one of the best apps that I have seen on Planet Source Code. You have got top vote from me! Visit my website sometime: http://www.jbrimble.net
(If this comment was disrespectful, please report it.)

 
3/19/2001 2:18:13 AMkdkvc

i can't run it! it shows "Loading" and then the whole vb environment turns off! why?
(If this comment was disrespectful, please report it.)

 
3/19/2001 5:24:51 AMMichael L. Barker

(Jaw drops!) Nice job!
(If this comment was disrespectful, please report it.)

 
3/19/2001 8:48:36 AMDECIS

Simply Brilliant
(If this comment was disrespectful, please report it.)

 
3/20/2001 1:03:59 AMJeff

This really IS awesome. My only problem is that on 3 different machines, each with a Voodoo 2 or 3 card, the explosions show as white garbage...any ideas?
(If this comment was disrespectful, please report it.)

 
3/22/2001 6:26:38 PMJamie Lindgren

I love this! You could make a full game out of it. However, having to use jumpjets in a flying game is annoying... the ship should just be able to hover at a level selected by some keys (like PgUp makes u go up and PgDn makes u go down).
(If this comment was disrespectful, please report it.)

 
4/8/2001 3:54:42 PMTodd

Does anyone know why I get the "Automation error"? I would like to take a look at the game but this error keeps stopping me..
(If this comment was disrespectful, please report it.)

 
9/1/2001 12:06:32 PMDeryck

Well, I'm no VB programmer so I need some help compiling it. Everyone says it rox, now help me please.
(If this comment was disrespectful, please report it.)

 
9/24/2001 2:41:29 AMstormchaser

It is the most beautiful 3D graphic programmed using VB. Good Job!
(If this comment was disrespectful, please report it.)

 
9/26/2001 6:40:53 AMYochai

AWSOME!!! GREAT!!! BRAVO!!!
I wish I could reach that level of 3D Programming!!!
(If this comment was disrespectful, please report it.)

 
11/20/2001 11:44:11 AMandroid

i <<>> this code! however, it *does* reboot my machine also upon game exit...
any ideas as to why it does this?
(If this comment was disrespectful, please report it.)

 
12/21/2001 9:47:07 AMstrobe

pretty damm cool..! beutiful code - short and sweet... without doubt the finest example of its kind on the net!! i know i've been through them all!! keep up the good work - if planet sourcecode offered a winner of the year award - this code should get it.
(If this comment was disrespectful, please report it.)

 
4/17/2002 11:30:39 AMXIX

I agree with everyone on this site who has given credit to this excellent source. I was wondering what Editor is used to create the Maps for this game.
(If this comment was disrespectful, please report it.)

 
7/24/2002 3:19:27 AMRaptor

Umm, WHY HAVENT YOU WON AN AWARD?! You should make another flying program, but not for fightin, for trick flying, and u should make the point system like one of those tony hawk games, i would actually PAY for a game like that lol

ps. make really really fast ships (with GREAT handling)
(If this comment was disrespectful, please report it.)

 
7/24/2002 3:20:22 AMRaptor

Edit- You did win an award lol, for some readon it decided not to load the Contest Winner graphics, well it did now, so COOL
(If this comment was disrespectful, please report it.)

 
7/24/2002 3:38:51 PMWolfgang Kienreich

Thanks a lot again for all the feedback on ERacer. As I have converted to Java3D for now, I'm not planning to update ERacer in the near future. For those of you who want faster ships etc. ... please do it yourself, I hope the code is clear enough! Feel free to use the Eracer engine - if there is such a thing :-))) - in your own projects.

But think about shifting to Java ... I'm doing shadow volumes and environmental mapping all the time, with almost no code, and my GeForce4 likes it a lot :-)))

Have fun with ERacer, and thanks again!

Wolfgang


(If this comment was disrespectful, please report it.)

 
8/8/2002 6:52:54 AMgrotesmurf

What can I add?? I almost couldn't believe that this was VB! Unbelievable!
(If this comment was disrespectful, please report it.)

 
10/29/2002 6:32:03 PM

Wow! I have bought several books on programming games in VB. They all say that it can be done. That VB is underestimated, etc. Then when you look at their sample applications, especially in 3D, they're cr*p.

If the sample programs in these books were just half as good as your program I wouldn't be so frustrated with game programming in VB.

This by far is the best 3D sample I have ever seen on PSC or anywher for that matter. They way that you keep the FPS up is amazing, espically when you consider the amount of physics you incorporated in the program.

The only complaint I have is that I don't understand the program. I really wish you have included a tutorial on this program and explained to us newbies why you did what you did?

Your code is so well written and so commented but to truly understand the 'Why' part would be the greatest.

Thanks - I wish I could give more than 5 globes.
(If this comment was disrespectful, please report it.)

 
11/20/2002 2:49:45 AM

Wow ! I just couldn't beleive my eyes when I saw this game on PSC ! Great work ! Well ,just a suggestion - If you have the capabilities of making such games then right tommorow you can open up your own game software Empire !! Great work once again .
(If this comment was disrespectful, please report it.)

 
11/26/2002 4:20:38 AM

Well done ! But please could you make it a real recing game ,like Need for speed ;Test drive and give away the source code ? I think PSC users might go crazy by downloading that source code and phew .... I dont know

But please try ! You can make it !!! The problem is i dont know DirectX at all !
(If this comment was disrespectful, please report it.)

 
12/1/2002 7:35:20 AMWil

wow, this is really good code. Not to hard to understand either :) 5 globes from me
(If this comment was disrespectful, please report it.)

 
2/27/2003 5:17:47 PMWolfgang Kienreich

To all of you who liked ERacer: Make sure you check out Yaarq in the Java section of this site. Basically, Yaarq is for Java3D what ERacer is for VBDirectX. Well, add some new features, like bump mapping, reflection mapping and the like :-).

Cheers

Wolfgang Kienreich
(If this comment was disrespectful, please report it.)

 
3/2/2003 7:03:04 AM

Gawd there has got to be a way to give you 6 globes! But there isnt, so 5 will have to make do. >:) That is a quite amazing piece of coding. You deserve the award 100%. Well done :)
(If this comment was disrespectful, please report it.)

 
3/27/2003 8:58:43 PMgaby

This is the first code that I seem pro and usable for 3d apps here. You are good, congratulations. I would like to know how do ypu create the models files. There are lots of coords.

Thanks for your code... wuuju
(If this comment was disrespectful, please report it.)

 
4/8/2003 9:08:02 AM

This is better then the best
(If this comment was disrespectful, please report it.)

 
7/21/2003 10:44:08 PMMick Walton

This is very nice code, and example of 3D graphics in vb, 5 globes from me
(If this comment was disrespectful, please report it.)

 
8/18/2003 3:34:38 PM

WOW, that is amazing!!! And it's even fast! The best 3D game I've seen with vb so far!
(If this comment was disrespectful, please report it.)

 
10/27/2003 5:26:28 PM

that is amazing, best submission ive ever seen on pscode for games
(If this comment was disrespectful, please report it.)

 
2/16/2004 3:56:53 PMAndrew Day

Simply Excellent!!!! need to turn on foe and sound etc
(If this comment was disrespectful, please report it.)

 
4/4/2004 3:02:07 PM

Speechless.
(If this comment was disrespectful, please report it.)

 
6/16/2004 4:00:14 PMSahil jain

this is what I could have sat and programmed all my life but still not achieved.
(If this comment was disrespectful, please report it.)

 
8/11/2004 10:16:27 AMCodeXP

GOOD WORK!
(If this comment was disrespectful, please report it.)

 
9/16/2004 4:12:31 AMEugene Wolff

Excellent, 5 Globes
(If this comment was disrespectful, please report it.)

 
11/25/2004 3:27:18 PM

For an older program, it's got way better graphics than a lot of the newer 3d engines.

This could be a great old school racing game.
(If this comment was disrespectful, please report it.)

 
4/20/2009 10:18:44 AMadel elkabany

now what was that , godness gracious , well done , well done , well done
(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.