GLBasic forum

Main forum => Announcements => Topic started by: SBlectric on 2014-Jan-08

Title: 3D Car Physics: Turbo Unleashed - Preview #2
Post by: SBlectric on 2014-Jan-08
Finally, the second preview! I have fixed the vast majority of physics issues since the last update.  8)
Pretty much everything is new and VASTLY improved.



Currently, I have implemented:
- Set game resolution (fullscreen / FOV as well)
- Circuit race track
- AI driving routine
- 3D car engine sounds (old fmod library)
- Newton physics
- Tachometer (no gears/transmission yet)
- Race position in the leaderboards (a toughie)
- Stencil buffer shadows (a REAL toughie)

Soon to be implemented:
- Track obstacles (breakable fences, cones, etc.)
- Split time
- Lap counting
- Speedometer
- Gears and transmission
- Transparent windows

In the not-so-far-off future:
- More cars
- More tracks
- More sound effects (even a switch to OpenAL)
- Menus and settings

The project is coming along nicely, but sadly it has been slowed somewhat by my college priorities.  :doubt:
Title: Re: 3D Car Physics: Turbo Unleashed - Preview #2
Post by: Moru on 2014-Jan-08
Looking really good!
Title: Re: 3D Car Physics: Turbo Unleashed - Preview #2
Post by: Alex_R on 2014-Jan-08
Impressive!! Good job! This game is a great promise!!
Title: Re: 3D Car Physics: Turbo Unleashed - Preview #2
Post by: erico on 2014-Jan-08
Super!

I like the AI and the way you resolve 1st and 2nd. When I thought about a racer I always had trouble figuring out how to approach that.
No need to say the physics are waaay much better then before. Keep it up.
Title: Re: 3D Car Physics: Turbo Unleashed - Preview #2
Post by: spacefractal on 2014-Jan-08
Do a Stunts remake based on that code and graphics. Im failed extractly that for many years ago, when im attempted that (im did a level editor near finished, but did never go to the gameplay, due bad research). Howover that one is and fell very cool!!!!
Title: Re: 3D Car Physics: Turbo Unleashed - Preview #2
Post by: matchy on 2014-Jan-08
It's awesome. I like it!  :good:
Title: Re: 3D Car Physics: Turbo Unleashed - Preview #2
Post by: SBlectric on 2014-Jan-08
Thanks everyone, I appreciate the positive feedback!
Title: Re: 3D Car Physics: Turbo Unleashed - Preview #2
Post by: MrPlow on 2014-Jan-08
Fab graphics! I'm thinking .. Death Race 2000!
:)
Title: Re: 3D Car Physics: Turbo Unleashed - Preview #2
Post by: mentalthink on 2014-Jan-08
WOW, very cool!!! I think when you make the graphics with a bit more work, the game can be very nice... Now have a nice look in fact!!! :nw: :nw:
Title: Re: 3D Car Physics: Turbo Unleashed - Preview #2
Post by: SBlectric on 2014-Jan-08
Something that is bugging me is that one of the problems I ran into with the stencil buffer was the fact that, with the full 20000+ poly car models, it ate up CPU usage to the point where the frame rate dropped from 60-70 down to 30-35 (this is with a high-end CPU and system, so I couldn't accept those frame rates if I were to ever release the game). So, I had to make a reduced poly car model for the shadow drawing, like this simplified code:
Code (glbasic) Select

FOR fx=0 TO 1
    IF fx=0 // normal lighting
    X_SPOT_LT 0, 0xFFFFFF, 0,100,0, 0,0,0, 360
    X_DRAWOBJ car_full,0
    ELSE // stencil buffer shadows
    X_SPOT_LT -3, 0x000000, 0,100,0, 0,0,0, 360
    X_DRAWOBJ car_reduced,0
    ENDIF
NEXT


It works great, but there are a few glitches with the car shadows here and there.
I could always add in the full model to the shadow processing later via a menu option, eg. Shadows - Ultra or something.
Title: Re: 3D Car Physics: Turbo Unleashed - Preview #2
Post by: erico on 2014-Jan-09
uh? O_O  how did you reduce the car model for the shadows?
Title: Re: 3D Car Physics: Turbo Unleashed - Preview #2
Post by: mentalthink on 2014-Jan-09
And for the shadow don't be better use some plane with a .png with the siloutte of the car... (I really I don't test never, but I think the game will be too much fuid)
Title: Re: 3D Car Physics: Turbo Unleashed - Preview #2
Post by: SBlectric on 2014-Jan-10
For reducing the car model, I used AC3D's Reduce function, which simplifies your model. I went from ~22,000 polygons to ~2,500 polygons for the shadow model. As soon as I did that, it brought my frame rate right back up to 60. As for more simplification, I don't think using a plane with a .png would work that well, and would like pretty bad.
Title: Re: 3D Car Physics: Turbo Unleashed - Preview #2
Post by: erico on 2014-Jan-10
Oh, I see. I asked because most reduction techniques might leave some holes through the model (glitches may appear).
You can probably reduce that even more if you model it from scratch to that purpose, and possiblt glitch free.

But it is a wip as I understand, and it is all looking/moving really cool.
What is the masterplan? track editor maybe? LAN/net play?
Title: Re: 3D Car Physics: Turbo Unleashed - Preview #2
Post by: SBlectric on 2014-Jan-10
Yep, I will eventually make a simple model from scratch to get rid of all the glitches and provide further speedups. The master plan is really open ended. Track editor is a possibility in the far future; while internet play is certainly more feasible in the shorter term.
Title: Re: 3D Car Physics: Turbo Unleashed - Preview #2
Post by: matchy on 2014-Jan-10
How far will you go to get the engine done, like shadows, lower poly count and speed, before focusing on a game theme and story for textures?
Title: Re: 3D Car Physics: Turbo Unleashed - Preview #2
Post by: SBlectric on 2014-Jan-11
Oh jeez, a story... well, that will come soon enough, I guess.
Title: Re: 3D Car Physics: Turbo Unleashed - Preview #2
Post by: matchy on 2014-Jan-16
No worries and sounds like something that will come to you. Although textures could try to give the impression of realism, even trying demos in cartoon would be interesting.
Title: Re: 3D Car Physics: Turbo Unleashed - Preview #2
Post by: erico on 2014-Jan-16
You could also avoid the realism and try wireframe and filled polygons. :good:
Title: Re: 3D Car Physics: Turbo Unleashed - Preview #2
Post by: spacefractal on 2014-Jan-16
Filled polygons, yes. I'm would love to see a virtua racing, stunts or jet car stunts like graphics. Graphics don't need to been realitics to have been fun. Jet cat stunts show that.