Computer Science Canada

My first shot at 3D

Author:  FunkyMunky [ Wed Jan 17, 2007 10:48 pm ]
Post subject:  My first shot at 3D

For my grade 10 ISU I've been working on a type of racing game in a 3D Engine. It's going to be a very basic game as I'm short on time. Basically u will be able to slide across the screen from left to right avoiding obstacles as you go. Currently i just have an engine that renders my car model and does the left and right animations. I will admit that a lot of the things i did was from looking at other 3D engines and implementing them in mine. I wanted to see what you guys thought, and maybe some suggestions? Also if anyone could help me with backface culling or proper shading, that would be really nice because i just can't seem to get it working properly. Read the commands.txt for keys to use.

Thanks for any help/constructive criticism

Author:  FunkyMunky [ Fri Jan 19, 2007 2:00 pm ]
Post subject:  RE:My first shot at 3D

Oh...so i guess nobody has any opinions...

Author:  DemonZ [ Fri Jan 19, 2007 8:47 pm ]
Post subject:  Re: My first shot at 3D

OK ill admit, thats pretty darn good, if not amazing. Some suggestions though, try to increase the FPS to at least 20 frames/second so that it runs more smoother, and maybe add some tires on the wheels because right now it looks only like the body of the car, so you need wheels, other than that its very well done, but maybe for extra try to make some better polygon shading when the car turns from left to right or vice versa, to make it look more detailed, other than that well, done, bravo.

Author:  CodeMonkey2000 [ Fri Jan 19, 2007 11:03 pm ]
Post subject:  RE:My first shot at 3D

Are you sure you're in grade 10?

Author:  Tycoon [ Sat Jan 20, 2007 12:23 am ]
Post subject:  Re: My first shot at 3D

Very well done, I tip my hat to you. That is excellant, you know how much we can learn from that. Finish it now Razz

Author:  rdrake [ Sat Jan 20, 2007 1:20 am ]
Post subject:  RE:My first shot at 3D

Most excellent job.

Only a few nitpicks with regard to the code:

  • Spacing is your friend. Space your code out a bit more so it's easier to read. The Turing Style Guidelines are a good thing to read.
  • Use less cryptic variable names. You specified what each means, but 500 lines down from there, are you still going to remember?

Just a few suggestions to keep you sane Smile.

Regardless, have some bits.

Author:  Tycoon [ Sat Jan 20, 2007 2:24 am ]
Post subject:  Re: RE:My first shot at 3D

rdrake @ Sat Jan 20, 2007 1:20 am wrote:
Most excellent job.

Only a few nitpicks with regard to the code:

  • Spacing is your friend. Space your code out a bit more so it's easier to read. The Turing Style Guidelines are a good thing to read.
  • Use less cryptic variable names. You specified what each means, but 500 lines down from there, are you still going to remember?

Just a few suggestions to keep you sane Smile.

Regardless, have some bits.


Very well written advice. Smile
(Following those 2 simple guidelines indeed, keeps you sane.

Author:  Robert [ Sat Jan 20, 2007 12:21 pm ]
Post subject:  RE:My first shot at 3D

For some reason, I had to take out the Font.New line and use defFontID instead.

I also keep getting a "Color value of -1 is out of bounds." on line 180.

This seems like an isolated problem on my machine, as no one else is having these problems.

Anyways, I'm impressed by just the description of what you did. Razz Good job!

Author:  FunkyMunky [ Sat Jan 20, 2007 12:56 pm ]
Post subject:  Re: My first shot at 3D

I'm going to work on wheels very soon, just didn't have time yet.

Thats for the advice rdrake, will clean up my code

As for shading thats as good as i can do so far, because i've tried my best to clean it up, but i just can't get it perfectly right

I will try to increase the FPS, once i manage to remove the rendering of unseen faces then it should increase, only i'm having problems with that atm

Thanks for the help/advice everyone Smile

Will keep working on it, i should post the final version once its down, if i manage to finish it that is.

Author:  LaZ3R [ Sun Jan 21, 2007 8:48 pm ]
Post subject:  Re: My first shot at 3D

Were you taught how to do all this in Grade 10? That's too impressive... This can really turn into a cool 3D racing game if you keep up the work! I don't even think I can do that... and I'm in GRADE 11!! Very Happy

Author:  agnivohneb [ Mon Jan 22, 2007 10:29 am ]
Post subject:  Re: My first shot at 3D

THIS IS CRAZY Nuty Eyes Scramble Very Shocked Blowing up How did you do that?!?!?!?!?!

Author:  FunkyMunky [ Mon Jan 22, 2007 7:03 pm ]
Post subject:  Re: My first shot at 3D

No we didn't learn to do this in class, i took it on my own to learn it Smile the best i've seen in my class other than mine was mario and a crude tanks game, everyone else is very simple 2D stuff, anyways i've pretty much finished it as far as i will get, so here is my final version , oh btw use backspace to get out of high scores

I didn't have time to clean up my code and i don't think i will

http://www.megaupload.com/?d=TJ53MBRA

Author:  Windsurfer [ Mon Jan 22, 2007 7:56 pm ]
Post subject:  Re: RE:My first shot at 3D

spearmonkey2000 @ Fri Jan 19, 2007 11:03 pm wrote:
Are you sure you're in grade 10?

Hey! I was in grade 10 when I made a 3D FPS using Pascal on 30Mhz Macs!

But seriously, this is great, and should have a lot of potential! Keep us updated!

Author:  Clayton [ Mon Jan 22, 2007 8:16 pm ]
Post subject:  Re: My first shot at 3D

and you were in grade 11 when you made Forces Laughing

Author:  CodeMonkey2000 [ Mon Jan 22, 2007 8:28 pm ]
Post subject:  RE:My first shot at 3D

No, it's just that im in grade 10, and dont know much about 2d vectors, or even trigonometry, let alone any 3d stuff. (pascal has a built in graphics module?) Oh I found a bug Razz if you hold "e" and let it go for a while, and then hold w to bring it back, the car gets warpped.

Author:  alexcaz [ Tue Jan 23, 2007 5:48 pm ]
Post subject:  Re: My first shot at 3D

woot go kornel, thinks thats how u spell ur name.., now go fix my summative.. plz

Author:  Windsurfer [ Tue Jan 23, 2007 5:58 pm ]
Post subject:  RE:My first shot at 3D

Haha, no, pascal has worse graphics than Turing... Like, the whole thing was just lines on the screen. I could only use class time, as I didn't have a mac at home... so I didn't have time for any models. The enemies were three lines Razz

Author:  DifinityRJ [ Tue Jan 23, 2007 6:32 pm ]
Post subject:  Re: My first shot at 3D

FunkyMunky @ Tue Jan 23, 2007 1:03 pm wrote:
No we didn't learn to do this in class, i took it on my own to learn it Smile the best i've seen in my class other than mine was mario and a crude tanks game, everyone else is very simple 2D stuff, anyways i've pretty much finished it as far as i will get, so here is my final version , oh btw use backspace to get out of high scores

I didn't have time to clean up my code and i don't think i will

http://www.megaupload.com/?d=TJ53MBRA


What are you saying.....that your racing game is better than my Mario hah......good luck on that one BUDDY......lol just kidding, i can settle for Second place, yours is way more complicated than mine... Mr. Green

Author:  DemonZ [ Wed Jan 24, 2007 12:15 am ]
Post subject:  Re: My first shot at 3D

Ok I have played your finished product and I have to say, Its amazing, it really is, but the frame rates didnt perform that well on my computer, its probably because of turing and because of my computer, but all I can say is that this game is revolutionary to the turing community. It really is, this has amzed me more than any other program, even though the graphics arent Project Gotham (like its even possible to have them like that) It still is an amazing game. BRAVO, BRAVO!

Author:  ed.man [ Wed Jan 24, 2007 8:41 am ]
Post subject:  Re: My first shot at 3D

fps is too low, but nice game Kornel Very Happy
I can still glitch it to get like 100 points tho Razz

~ Louis

Author:  FunkyMunky [ Wed Jan 24, 2007 5:02 pm ]
Post subject:  Re: My first shot at 3D

Thanks for all your comments Very Happy

I'm pretty much finished with this for now, exams are here, new courses are starting, and then its probably VB for grade 11

Might come back to it sometime just for fun, see what else i can do Razz

I'm glad people enjoyed it and i hope this helps some people learn a thing or two.

Author:  DifinityRJ [ Wed Jan 24, 2007 7:25 pm ]
Post subject:  Re: My first shot at 3D

ed.man @ Thu Jan 25, 2007 2:41 am wrote:
fps is too low, but nice game Kornel Very Happy
I can still glitch it to get like 100 points tho Razz

~ Louis

We arent professional programmers here Louis, of course there are glitches, and thats not even the point, Kornel's program pwns yours and mine, anyways, well done.

Author:  The REAL Man [ Wed Mar 28, 2007 9:03 am ]
Post subject:  Re: My first shot at 3D

sorry for being an annoying noob, but could you post this somewhere other than megaupload. my school has issues with that site.

thnx

Author:  tkas19 [ Sun Jun 03, 2007 7:29 pm ]
Post subject:  RE:My first shot at 3D

i have to admit this is good


: