Results 1 to 15 of 15

Thread: After some ideas on a traffic AI

  1. #1

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    After some ideas on a traffic AI

    Basically so far i don't have anything set out but have plans in my head of how I can break road sections up into "Building blocks". But i was after some ideas of what kinda of things I should plan for, for example "House Points", like so a car can be heading to home and will pull up on the drive. "Parking Spaces", these will require a little more manouvering once reached rather than being simple road routes. "Bus Stops" too I guess as it would be expected quite a lot of cars would wait if a bus was at a bus stop compared to a normal car just pulling over to park.

    Can anyone else think of some others I might have missed out. Baring in mind I don't want to over complicate it to start with but don't want to get into the situation where it will be impossible to alter later to add a feature
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  2. #2
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: After some ideas on a traffic AI

    People walking over those white and black stripes. Not sure what it is called, but cars have to wait (at least here in Norway).

    I guess you didn't forget traffic lights either.


    And in sqares if there is a queue the road the car want to drive into, he can't drive into it because then he would block the whole traffic square for other cars that wants to go in other direction.

    And last but not least. Remember that you guys are driving on the wrong side of the road...

  3. #3
    Not NoteMe SLH's Avatar
    Join Date
    Mar 2002
    Location
    192.168.0.1 Preferred Animal: Penguin Reason for errors: Line#38
    Posts
    3,051

    Re: After some ideas on a traffic AI

    Trains, and all the stuff that goes with 'em, like level crossings etc.

    Trams? (Motor)Bikes?

    On the vehicle side, how about 'special' vehicles, such as police cars, fire engines etc.
    Quotes:
    "I am getting better then you guys.." NoteMe, on his leet english skills.
    "And I am going to meat her again later on tonight." NoteMe
    "I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
    "my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
    Have I helped you? Please Rate my posts.


  4. #4
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: After some ideas on a traffic AI

    Ohhh...yeah, I had police cars and ehhh...sick cars..ehhhh..amulances (SP?) in my traffic AI demo for school. Tell me if you need pictures. I have a great tool to get some nice pictures... I found it when I made the DX car game I once started.


    BTW, arn't you doing the same at school now SLH? Are we all on the same school......just kidding.

  5. #5
    Banned dglienna's Avatar
    Join Date
    Jun 2004
    Location
    Center of it all
    Posts
    17,901

    Re: After some ideas on a traffic AI

    Note, you mean Crosswalks?

    I would have to say Fire Hydarnts, Stop Signs, and Alleys.

  6. #6
    Not NoteMe SLH's Avatar
    Join Date
    Mar 2002
    Location
    192.168.0.1 Preferred Animal: Penguin Reason for errors: Line#38
    Posts
    3,051

    Re: After some ideas on a traffic AI

    Quote Originally Posted by NoteMe
    Ohhh...yeah, I had police cars and ehhh...sick cars..ehhhh..amulances (SP?) in my traffic AI demo for school. Tell me if you need pictures. I have a great tool to get some nice pictures... I found it when I made the DX car game I once started.


    BTW, arn't you doing the same at school now SLH? Are we all on the same school......just kidding.
    Lets see some pics note!

    I'm doing mine for fun, nothing to do with Uni.
    Quotes:
    "I am getting better then you guys.." NoteMe, on his leet english skills.
    "And I am going to meat her again later on tonight." NoteMe
    "I think you should change your name to QuoteMe" Shaggy Hiker, regarding NoteMe
    "my sweet lord jesus. I've decided never to have breast implants" Tom Gibbons
    Have I helped you? Please Rate my posts.


  7. #7
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: After some ideas on a traffic AI

    I never did so much out of it. We where just supposed to show that we could handle to make a form, and use a timer and handle the message queue in a Windows SDK (as my teacher said) app.


    But I can upload some pictures just for fun. But never bothered to add buildings, more find real traffic lights and stuff like that..

  8. #8
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Re: After some ideas on a traffic AI

    I guess everyone understand where I got it from now.......the app I used is really nice. One of the programmers that actualy made the game commented on it, and said it was better then the resource editor they had for the real game..










  9. #9

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    Re: After some ideas on a traffic AI

    Thanx some good suggestions there
    We would call them Zebra crossings here

    As for the Stop signs that is a good one, I'd of made it with just one type of junction (i.e. the Giveway type), doh.

    I think a LevelCrossing would work similar to a Zebra Crossing just what uses them. The way/time the cars have to stop differ so I'm not sure if i will make them the same thing yet.

    Good one with those boxes at some traffic lights that you shoudln't enter unless you know you can exit .

    For police cars I'm not sure yet how this will be done as they practically ignore all the lines on the road sometimes. I think I've got it sorted how cars will react when a police car is near though.

    This aint for school but just something to do in my free time for a bit cos i've not been programming all that much recently .
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  10. #10
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176

    Re: After some ideas on a traffic AI

    Pelika crossing
    Roundabouts
    One way roads
    Road works
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  11. #11
    PowerPoster Halsafar's Avatar
    Join Date
    Jun 2004
    Location
    Saskatoon, SK
    Posts
    2,339

    Re: After some ideas on a traffic AI

    "No Homer!"
    "You've entered a round-about!"
    "From what was there, and was meant to be, but not of that was faded away." - - Steve Damm

    "The polar opposite of nothingness is existance. When existance calls apon nothingness it shall return to nothingness." - - Steve Damm

    "When you do things right, people won't be sure if you did anything at all." - - God from Futurama

  12. #12
    type Woss is new Grumpy; wossname's Avatar
    Join Date
    Aug 2002
    Location
    #!/bin/bash
    Posts
    5,682

    Re: After some ideas on a traffic AI

    Have you thought about the "New York Second"? It is the smallest unit of time ever measured.

    It is the amount of time that passes between the traffic light turning yellow and the taxi driver behind you hitting his car horn.
    I don't live here any more.

  13. #13

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    Re: After some ideas on a traffic AI

    Quote Originally Posted by wossname
    Have you thought about the "New York Second"? It is the smallest unit of time ever measured.

    It is the amount of time that passes between the traffic light turning yellow and the taxi driver behind you hitting his car horn.
    haha



    Roundabouts are actually given for free. They would basically be handled as normal routes with Give way points to enter the main path. Mind for Mini roundabouts problems would arise with cars blocking each other off and as a result no one pulling out, I think adding in a bit of randomness would solve that though .


    EDIT: Ow yea good one with the Road works too .
    Last edited by Electroman; Mar 17th, 2005 at 06:54 PM.
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

  14. #14
    KING BODWAD XXI BodwadUK's Avatar
    Join Date
    Aug 2002
    Location
    Nottingham
    Posts
    2,176

    Re: After some ideas on a traffic AI

    I would have thought roundabouts were difficult
    If you dribble then you are as mad as me

    Lost World Creations Website (XBOX Indie games)
    Lene Marlin

  15. #15

    Thread Starter
    Ex-Super Mod'rater Electroman's Avatar
    Join Date
    Sep 2000
    Location
    Newcastle, England
    Posts
    4,349

    Re: After some ideas on a traffic AI

    Well kinda but its still made up from the basic building blocks on the road system. I attached a pic to explain it. The green & Red lines show the paths the cars can take. If they enter the roundabout they will start on a green road, the Blue line represtents a Giveway junction, so they will wait ther till there is room to move onto the roundabout. Once on the round about they continue going round they will come upto the Yellow lines, these represt junctions where the car has to decide which route to take (fork in the road, or a left hand turn). And they basically would use the path they wanted from that.
    Attached Images Attached Images  
    When your thread has been resolved please edit the original post in the thread ()
    and amend "-[RESOLVED]-" to the end of the title and change the icon to , Thank you.

    When posting Code use the [VBCode]Code Here[/VBCode] tags to be able to use the code highlighting.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width