Jump to content

  • Log In with Google      Sign In   
  • Create Account

Banner advertising on our site currently available from just $5!


1. Learn about the promo. 2. Sign up for GDNet+. 3. Set up your advert!


How do I make a Pseudo 3D Road?


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   -  Reputation: 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.



Sponsor:

#2 Ravyne   GDNet+   -  Reputation: 10381

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.



PARTNERS