pouët.net

Go to bottom

3d twisty track

category: general [glöplog]
I was playing Super Hangon (sega) and wondering, whats a good way to code the winding track effect? Also found in games like Outrun. Anybody know of some source I could look at? Anything helps.
added on the 2008-11-07 04:23:45 by b0ib0t b0ib0t
I have found out that the technique used for games like Super Hangon, and Outrun is called "Super-Scaler". Its a step :)
added on the 2008-11-07 04:35:07 by b0ib0t b0ib0t
BB Image
added on the 2008-11-07 04:47:17 by b0ib0t b0ib0t
f-zero gx

BB Image
??
added on the 2008-11-07 05:19:20 by b0ib0t b0ib0t
boobs

BB Image
added on the 2008-11-07 05:23:34 by xernobyl xernobyl
I have also herd this type of engine referred to as a bi-dimensional engine/race game. I still cannot find much details though.
added on the 2008-11-07 05:46:29 by b0ib0t b0ib0t
BB Image
added on the 2008-11-07 05:49:37 by bdk bdk
I'm getting closer!!! Bi-Linear Parallax Scrolling!
added on the 2008-11-07 05:57:01 by b0ib0t b0ib0t
a lot of old hw was able to scale only in 2d, so you would scale differently on every scanline in a h retrace interrupt handler. maybe the hw did not even do it, but the cpu was only fast enough to start a 1d scale only on every h interrupt. on gba for example one could set up a full du/dv every scanline and do stuff like fzero (1/z is constant over x in perspective mapping when y is constant). the simpler, earlier racing games i guess could only setup a du or do a variable 1d scale on the cpu, generating those racing games.
added on the 2008-11-07 06:02:12 by shiva shiva
b0b0t: http://www.system16.com/hardware.php?id=697 mentions the road as a system16 hardware effect, dont know what that means though
added on the 2008-11-07 06:40:39 by the_Ye-Ti the_Ye-Ti
One of my unfinished projects, nelumbo:

BB Image

Basically I have the track as a spline, and I'm doing perspective projection and render scanlines from near to far. Handles perspective, hills, curves etc just fine. Naturally you can't have very steep curves with this technique, but it runs *real smooth* on the gp2x. I'm not sure if I'll ever finish that project, so I might clean it up and release it as it is..
added on the 2008-11-07 07:29:44 by sol_hsa sol_hsa
Interesting thread. I had been wondering for a long time what are the better techniques to render tracks in racing games on the CPC. That's because I'd like to try making a racing game on CPC myself. Some tracks seem to use raster colors to show that something is moving but you still have to change some pixels when the track from a straight road morphs into some steep curve. Maybe I should some tests and try this out.
added on the 2008-11-07 08:44:26 by Optimus Optimus
Lol i actually had that game on my Vic20 Broderick, I played it so much along with all teh Scott Adams adventure games :) Adventure Island rocked!
added on the 2008-11-07 12:49:24 by Intrinsic Intrinsic
I had a small amount of time to work on this while I was at work. Here is a screenshot of what I came up with.

BB Image

I'm probably not doing it the "right" way, but it works. haha! If anyone wants to see the code, feel free to ask.
added on the 2008-11-08 03:44:18 by b0ib0t b0ib0t
Also, I checked out thrilldoll.com, very nice! 20/mo is a bit steep in price IMHO... Maybe I should code my own pr0n site and make tons of money! =)
added on the 2008-11-08 03:50:50 by b0ib0t b0ib0t
Some of your dark lines are overlapping the bright lines. Fix that. Also, WTF happened to the perspective?
added on the 2008-11-08 04:16:50 by xernobyl xernobyl
I believe they use Hblank tricks of a pre-drawn /_\ road and just moving the X scroll on the IRQ.

to simulate a mountain, they have a big step in the Y scroll and darkening the palette (pre-calculated probably)
added on the 2008-11-08 04:28:35 by LiraNuna LiraNuna
b0ib0t : I think back then most games used a one pixel high pre-scaled pattern of the road.

The road was drawn each scanline using the proper width of that pattern along the height of the screen then raster colors were positionned at the proper height and moving downward at a non linear speed to give the illusion of motion and perspective.

BB Image
added on the 2008-11-08 07:36:19 by keops keops
b0ib0t:


you can check roadway.kc script of this utility : here

BB Image

added on the 2008-11-08 11:03:35 by Tigrou Tigrou
crazy road engine :

http://fr.youtube.com/watch?v=Eg7-bd03Nwg&feature=related
added on the 2008-11-08 11:25:56 by Tigrou Tigrou
pmdata: That road engine does its curves and things w/out using sin() or cos()!!! I'm definitely going about things the wrong way... I think I'm going to throw away what I have so far and start over. Thank you so much for showing me that!
added on the 2008-11-08 17:36:19 by b0ib0t b0ib0t

login

Go to top