GLBasic forum

Codesnippets => Code Snippets => Topic started by: MrTAToad on 2011-Jan-13

Title: Pseudo 3D track Part 2
Post by: MrTAToad on 2011-Jan-13
As the original version didn't work very well, I converted the QBASIC code (from http://www.gorenfeld.net/lou/pseudo/ (http://www.gorenfeld.net/lou/pseudo/)) to GLBasic, and it runs very well.

Its very basic, and I haven't optimised the code, but it runs :)

A video of it running :



[attachment deleted by admin]
Title: Re: Pseudo 3D track Part 2
Post by: matchy on 2011-Jan-13
That's so cool and awesome screen-shots sample of games from there.  :good: :good: It would be really nice to see trees and hills, although I'll have to read that page later.
Title: Re: Pseudo 3D track Part 2
Post by: Kitty Hello on 2011-Jan-13
Wow, cool!
Title: Re: Pseudo 3D track Part 2
Post by: Ionise on 2011-Jan-13
Nice conversion.

I have to say though the turns are very angular and rather snappy.

Maybe time for a remake rather than conversion.  ;/
Title: Re: Pseudo 3D track Part 2
Post by: Ian Price on 2011-Jan-13
Nice one.
Title: Re: Pseudo 3D track Part 2
Post by: MrTAToad on 2011-Jan-13
QuoteI have to say though the turns are very angular and rather snappy.
Curves are done using a very basic calculation - plus it only turns right.
Title: Re: Pseudo 3D track Part 2
Post by: doimus on 2011-Jan-13
Cool! It reminds me so much of Mach Rider on NES. Got to remake that some day!

BTW, article/tutorial on that link is fantastic!
Title: Re: Pseudo 3D track Part 2
Post by: erico on 2011-Jan-13
class A
Title: Re: Pseudo 3D track Part 2
Post by: MrTAToad on 2011-Jan-14
I'm hoping the chap will do proper one with an efficient and smooth system for bends, hills and dips...
Title: Re: Pseudo 3D track Part 2
Post by: Marmor on 2011-Jan-14
he have removed the code  :O
Title: Re: Pseudo 3D track Part 2
Post by: MrTAToad on 2011-Jan-14
His original large scale one - that went ages ago.  The QBasic code is still there though.
Title: Re: Pseudo 3D track Part 2
Post by: Wampus on 2011-Jan-14
Love it! Very retro. Reminds me of Space Harrier and Super Hang On.  :)
Title: Re: Pseudo 3D track Part 2
Post by: MrTAToad on 2011-Jan-14
Thanks!
Title: Re: Pseudo 3D track Part 2
Post by: Crivens on 2011-Jan-15
If you mean the original C code then use the web archive (wayback machine?) as there is a rar file for it from 2007. Hopefully is for full thing

Cheers
Title: Re: Pseudo 3D track Part 2
Post by: MrTAToad on 2011-Jan-19
I hope he is updating that code  - unfortunately there is no release date :)
Title: Re: Pseudo 3D track Part 2
Post by: Crivens on 2011-Jan-24
Here is a link to when he did have source code (2007). Possibly for an older engine, and by the looks of it in C (I've attached the file), but hell, might help, especially with more complicated stuff like hills.
http://replay.waybackmachine.org/20071109204800/http://www.gorenfeld.net/lou/pseudo/

I must admit an OutRun engine would be pretty damn cool in a retro kind of way.

Cheers



[attachment deleted by admin]
Title: Re: Pseudo 3D track Part 2
Post by: MrTAToad on 2011-Jan-24
Really must convert it sometime...
Title: Re: Pseudo 3D track Part 2
Post by: quangdx on 2011-Jan-24
some more info on the subject.
http://www.gamedev.net/topic/373043-classic-outrun-esque-racing-game-display/
Title: Re: Pseudo 3D track Part 2
Post by: Dabz on 2011-Jan-24
You should see Cygnus who wrote the Blitz one, he pops into my site now and again... Worth the ask if the Blitz one didnt convert over very well!

Dabz
Title: Re: Pseudo 3D track Part 2
Post by: MrTAToad on 2011-Jan-25
Must do that some time!
Title: Re: Pseudo 3D track Part 2
Post by: erico on 2011-Jan-25
I was thinking of reproducing those effects inside glbasic's 3d engine for some time now...

..but I was going to go for a similar style, closer to Uberleden's style,
check teknospants game here and have a blast:
http://teknopants.com/games/uberleben/
That would be great on mobiles right?

I was thinking more like a game similar to FEEDBACK on the MSX or UNREAL on the amiga...
Title: Re: Pseudo 3D track Part 2
Post by: MrTAToad on 2011-Jan-25
That would be good!
Title: Re: Pseudo 3D track Part 2
Post by: Wampus on 2011-Jan-25
Quote from: erico on 2011-Jan-25
..but I was going to go for a similar style, closer to Uberleden's style,
check teknospants game here and have a blast:
http://teknopants.com/games/uberleben/
That would be great on mobiles right?
Yes, it would. There are quite a few "falling" games now but most somehow fail to be much fun. Uberleben was fun.
Title: Re: Pseudo 3D track Part 2
Post by: Slydog on 2011-Jan-25
Quote..but I was going to go for a similar style, closer to Uberleden's style

It looks like it is done (or at least COULD be done) in 2D, with a layered technique, kind of like parallax scrolling.
You wouldn't need 'sides', just a bunch of layers, with only about 20 visible at once. 
Use polyvectors, draw bottom to top, and just increase their size based on distance to the camera, and don't draw layers out of range.
(For scaling, imagine the center was (0,0), then multiply all (x,y) values by a zoom factor, then adjust to the proper screen location).
For collisions, only the top most layer would need to be checked (assuming that's where the player is).

Of course it could be 3D too!  With only 2D looking models.
But either way, very cool effect!
Title: Re: Pseudo 3D track Part 2
Post by: Hemlos on 2011-Jan-28
You could use my bezier lib to reproduce these 2d/3d effects.