Advertisement

AI for 3D roads

Started by March 30, 2012 09:56 AM
3 comments, last by IADaveMark 12 years, 5 months ago
Hi all,

I have a 3D city with roads, and i want to make trafic only on those roads only

what should i have to do?

how to define roads into data for AI
i didnt find similar problem over the internet

Thanks
If you mean like having something like in simcity but more complex and not a gird, you could just take all intersections and save data on what other intersections you can go to from that specific one (curves would be intersections too i guess, you could add data for how to turn and drive on intersections to make it look ok)

Then make complex AI which simulates traffic flow or something.

o3o

Advertisement
Hi thanks for ur reply

im stack on how to define for each city the road and connect it later with AI

i didnt find any topic on google about that, because its not like using grids ...
something like this:

Never mind grids... use nav graph nodes with edges between them. Tell the AI they can only walk from one node to the ones connected via edges. If you edges are on the roads (like in the video), the AI will look like it is staying on the roads.

Dave Mark - President and Lead Designer of Intrinsic Algorithm LLC
Professional consultant on game AI, mathematical modeling, simulation modeling
Co-founder and 10 year advisor of the GDC AI Summit
Author of the book, Behavioral Mathematics for Game AI
Blogs I write:
IA News - What's happening at IA | IA on AI - AI news and notes | Post-Play'em - Observations on AI of games I play

"Reducing the world to mathematical equations!"

This topic is closed to new replies.

Advertisement