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 :)
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...:D
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.
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...:D...just kidding.
Re: After some ideas on a traffic AI
Note, you mean Crosswalks?
I would have to say Fire Hydarnts, Stop Signs, and Alleys.
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...:D...just kidding.
Lets see some pics note!
I'm doing mine for fun, nothing to do with Uni. :thumb:
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..:)
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..:D
http://download.noteme.com/images/trafikk1.jpg
http://download.noteme.com/images/trafikk2.jpg
http://download.noteme.com/images/trafikk3.jpg
Re: After some ideas on a traffic AI
Thanx some good suggestions there :)
We would call them Zebra crossings here :D
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 :D.
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 :).
Re: After some ideas on a traffic AI
Pelika crossing
Roundabouts
One way roads
Road works :afrog:
Re: After some ideas on a traffic AI
"No Homer!"
"You've entered a round-about!"
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. :D
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. :D
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 :D.
EDIT: Ow yea good one with the Road works too :).
Re: After some ideas on a traffic AI
I would have thought roundabouts were difficult :eek:
1 Attachment(s)
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.