Discussion Board

Results 1 to 2 of 2
  1. #1
    Registered User vishwas_dot_h's Avatar
    Join Date
    Sep 2003
    Posts
    37
    Hi Folks,


    I have seen many racing game in j2me most of them from a top view which is basicaly a tile game( am i right?).

    I confused about racing game those who got a perspective view...can anybodt tell me what is the basic techniqe behind this.


    Thanx
    wating for reply.

  2. #2
    Super Contributor shmoove's Avatar
    Join Date
    Mar 2003
    Location
    Israel
    Posts
    2,280
    I have seen many racing game in j2me most of them from a top view which is basicaly a tile game( am i right?).
    That's a pretty safe bet.

    I confused about racing game those who got a perspective view...can anybodt tell me what is the basic techniqe behind this
    I've never done any of those so I'm purely speculating, but I guess they use some kind of horizontal raytracing. What I mean is that for every y on the screen you calculate the left and right edges (x coordinates) of the road at that distance (using a perspective transformation of some kind, it depends on how you would encode the track) and then draw horizontal lines changing the color at the edges.

    shmoove

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Nokia Developer aims to help you create apps and publish them so you can connect with users around the world.

京ICP备05048969号  © Copyright Nokia 2013 All rights reserved