Jump to content

  • Log In with Google      Sign In   
  • Create Account

AI for 3D roads


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
4 replies to this topic

#1 vir2007   Members   -  Reputation: 105

Like
0Likes
Like

Posted 30 March 2012 - 03:56 AM

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

Sponsor:

#2 Waterlimon   Crossbones+   -  Reputation: 2635

Like
0Likes
Like

Posted 30 March 2012 - 05:16 AM

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


#3 vir2007   Members   -  Reputation: 105

Like
0Likes
Like

Posted 01 April 2012 - 04:14 AM

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 ...

#4 vir2007   Members   -  Reputation: 105

Like
0Likes
Like

Posted 01 April 2012 - 07:29 AM

something like this:



#5 IADaveMark   Moderators   -  Reputation: 2531

Like
0Likes
Like

Posted 01 April 2012 - 08:40 AM

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-advisor of the GDC AI Summit
Co-founder of the AI Game Programmers Guild
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!"




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS