Newest version Race3d+Sound!!

I managed to get the engine-sound sound quite good.

Also there’s some nice background-tune playing.

Tell me what you think about it, and please give me your frame-rate.(in -and outside of the car)

Thanx

PS: download it by right-clicking (and the save target as):

http://strueli.tripod.com/race3d.zip

Well, I didn’t get it working yet but I did do some decompiling and hunting. It seems to crap out on mediaTracker.waitForAll() which seems to crash the VM (!). I got round it by putting a / before the path (ie “/pics/bg2.jpg”) and I used getResource() (and abused ImageIcon for it) to do the loading instead of Toolkit.getDefaultToolkit().getImage();.
I didn’t have time to decompile and change all classes, but I think that the problem is here.

I also saw that you use 4 buffers in the BufferStrategy where I think 2 should be enough.

I hope this helps,
Erik

BTW I use 1.4.1_01

Runs well, but , graphic corruption EVERYWHERE. I’m running:

Athlon XP 2400
512MB PC2700 DDR
ATI Radeon 8500 AIW /128MB

???

-SG

Tried it, got horrible corrupted graphics. Exited, restarted and everything appeared to be ok ???

Anyway, nice and smooth except for regular judders (GC glitches?) every 5 seconds or so :’( Would be nice if the corners actually required you to turn as well :wink:

Same here…weird…

-Chris

The corners do have effect on your car, but the game gets more difficult after every checkpoint. You will see that after checkpoint 4 you’ll even have to brake to take the corners.

Maybe the graphical errors occur because I use 4 buffers? I’ll try to use 2 instead.

thanx for your feedback

I tried again at home and it works ok, except that when exiting from the game, it hangs.
I got a crashed ‘Ddhelp’ (I sometimes have it too when exiting from open gl) and microsoft suggests that the videodriver is to be blamed for that.

(I got a gf4 with the latest drivers. I’m frankly a bit disappointed with nvidia that the drivers of a quite expensive videocard are so damn unstable. And BIG! I mean 15Mb for an unstable videodriver is NOT FUNNY, especially if you’re on dial-up like me. I tried several drivers and all seem to have different issues ).

Runs fine :slight_smile:
But way too fast in my opinion.

Framerate is about 60 inside and outside.

And on exit it messes up my windows resolution. (Doesnt set it back to 1280x1024 but keeps 640x480)

Athlon 2200+
Ati 9700Pro
1.5G 2700 ddr ram
win xp

So where is the ‘3d’ part> It looks like you did all of this in java2d.
Also, the keyboard handling needs some work. It looks like you let the keyboard buffer up like typing in a terminal.

You will want to detect that the key is pressed down and when it comes back up. Use the following methods for that (thats if you are using the key listener)
keyPressed(KeyEvent evt)
keyReleased(KeyEvent evt)

Good luck