Users browsing this thread: 1 Guest(s)
Whats the math behind Outrun environments?
#3
looks to me like you have either 3d-rendering or psuedo-3d rendering going on there.

i'm not sure how to help you, but i might have a few tips.

Firstly, this game appears to be using 3d perspective projection, with the focal point(s) more or less in the center.

I will say for any of the misc. background objects, such as trees, it is fairly easy to reproduce this effect. you start them at the focal point(s) , and render them at a very small scale. as the car moves forward, you move them out to their respective bottom corner. you also need to account for the car's speed. I can't really say how that formula should work, however.

you also may want to take advantage of pre-rendering, and similar practices. Some good places to try this would be the cars, and maybe the road. Probably what you'd be doing, either yourself, or by a designated graphic artists, is drawing the possible rotations for your cars, and maybe the lines on the road as the appear o be moving towards you.

Ofc, seeing as you're using Java (or any modern language/console/platform) , you could easily utilize an actual 3d rendering program to handle a lot of the dirty work.

Which leaves you with the map format, itself.
I wouldn't know exactly how that works for these games.
Most developers don't use the same formats for anything.
Your best bet is google, or that someone else here can explain it.
You could also attempt to contact the original developers, ideally the programmers.

One way you could do it, let's just stick with the bare-bones basics, let's say a typical straight stretch of your track has, distributed evenly, six places to add an object. Three on the left, three on the right. One possible way you could store this (I'll use XML):

<track>
<part>
<type>straight</type>
<objs>
<o1>tree</o1>
<o2>tree</o2>
<o3>null</o3>
<o4>sign</o4>
<o5>tree</o5>
<o6>tree</o6>
</objs>
</part>
</track>

Now, this would correspond to a straight section of track, laid out as follows:
tree [road] tree
nothing [road] sign
tree [road] tree

There are many ways you can set-up the maps, themselves, and this is just one way.

Hope this is somewhat helpful?
I am going off what little information you've provided, and what little I would know about doing this kind of thing.

edit:
another very clear answer provided while i typed mine
Reply
Thanked by: rusty


Messages In This Thread
RE: Whats the math behind Outrun environments? - by DarkGrievous7145 - 12-03-2015, 04:00 PM

Forum Jump: