Jump to content

View more

Image of the Day

The night is still, but the invasion brings chaos. #screenshotsaturday #hanako #indiegame #gameart #ue4 #samurai https://t.co/cgILXuokoS
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

How do I make a Pseudo 3D Road?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
1 reply to this topic

#1 Mia.   Members   

494
Like
1Likes
Like

Posted 21 May 2014 - 10:18 PM

How would you go about making a pseudo 3D road? I'm not sure. The effect I'm trying to get is something that looks like Pole Position or Outrun. To get this effect, you would render each scanline separately, yes? That's what I got from Lou's Pseudo 3D page (http://www.extentofthejam.com/pseudo/) and a few other sites...but I still don't understand how they're doing it graphically. Furthermore, SDL can't scale, and I haven't learned OpenGL yet (I want to use just SDL for now so I can learn it before moving into OpenGL too). Any help would be appreciated.



#2 Ravyne   Members   

14291
Like
0Likes
Like

Posted 22 May 2014 - 01:44 PM

Yeah, that's the gist of it. Scale down each scanline more as its closer to the horizon, and shift it left or right to show turns. you can get the lay of the road by defining a 2D vector representation of the track -- a spline would do nicely. With a little extra work you can extend the spline to 3D to simulate valleys and hills.

 

SDL can certianly scale and do everything you need it to. There's an Outrun style engine written in C and SDL called Cannonball. Have a look at the source.


Edited by Ravyne, 22 May 2014 - 01:48 PM.

throw table_exception("(ノ ゜Д゜)ノ ︵ ┻━┻");





Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.