The Working Traffic Simulator

July 21st, 2007 by Brad Heap

This is a shot from the traffic simulator that I am working on with a friend at university as a research project. We have been planning the project and working on the code for a number of months now. But it has really only been in the last 48 hours that we have really started cracking into it, as this semester is the semester that we are really meant to be doing work on it.

Last night I was trying to plan and figure out what variables I needed for the roads to generate cars. And without making too much of a story (because it is quite a bit of a long one), I ended up generating the initial cars, and getting them to move. Something I didn’t think would happen for at least another week. Anyway this morning, I have managed to get them to be aware of the car in front so they don’t crash up the back of it, and accelerate and stop, and other bits and pieces. The whole project has a long way to go (and a 20,000 word thesis as well), but this is some good progress.

Oh and I have attached the performance graphs as well to demonstrate that the cars don’t max out the cpu either.

Traffic Simulator Pic One

You can also download a short movie clip here: test.swf

Tags: , , , ,

Leave a Reply

You must be logged in to post a comment.