20
\$\begingroup\$

What would be a good approach to develop the render system for an oldschool type racing game that uses a pseudo 3D scenery, like for example Outrun or Lotus Esprit Turbo Challenge? There's an endless scrolling road and scenery graphics are placed like billboard items, etc. I think you get the idea.

Screenshot from Lotus: The Ultimate Challenge

Are these developed in a similar way like Mode7 or is there a different technique behind it? Does the technique has a specific name I could search for on the web? I need to develop something like that in Flash.

\$\endgroup\$

2 Answers 2

23
\$\begingroup\$

There's an excellent article out there that explains the 3D rendering of these games in detail. And you'll also find a complete implementation in JavaScript here.

The basic idea is as follows: You divide your screen into a number of strips and use perspective-projection to calculate the texture-coordinates (scaling and y position inside the road-texture) for each strip. Then you draw the portion of the texture into the strip, resulting in a road that vanishes in the distance.

\$\endgroup\$
0
1
\$\begingroup\$

They generate pseudo 3D scenery by using perspective. They have a vanishing point at the center of screen. You can calculate by using perspective projection.

\$\endgroup\$
1
  • 1
    \$\begingroup\$ I think you meant "perspective", not "perception". \$\endgroup\$ Feb 19, 2013 at 8:03

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .