SlideShare a Scribd company logo
1 of 38
AI in MMO’s
Pathfinding – Navigation meshes
Marijn Zwemmer
Over..
• Introductie waypoints en navigation meshes
• Waypoints vs. Navigation meshes
• De constructie van een navigation mesh
• Werking van een navigation mesh
• In de praktijk
Waypoints
Navigation meshes
Waypoints vs. Navigation
meshes
--- = Waypoints
--- = Navigation Mesh
Waypoints Navigation Mesh
Catmull-Rom spline
Waypoints Navigation Mesh
Waypoints
Navigation Mesh
Constructie navigation mesh
1: Exploratie 2: Mesh simplificatie 3: Mesh finalisatie
1: Exploratie 2: Mesh simplificatie 3: Mesh finalisatie
1: Exploratie 2: Mesh simplificatie 3: Mesh finalisatie
1: Exploratie 2: Mesh simplificatie 3: Mesh finalisatie
1: Exploratie 2: Mesh simplificatie 3: Mesh finalisatie
1: Exploratie 2: Mesh simplificatie 3: Mesh finalisatie
Verdere mogelijkheden
Werking van een navigation
mesh
“Next Corner”
In de praktijk
?

More Related Content

Featured

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

Featured (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

Ai in mmo’s (navigation meshes) marijn zwemmer

Editor's Notes

  1. AI in MMO’s, specifiek in World of Warcraft. Dit is nog niet de uiteindelijke versie, ik ben van plan om hier en daar nog wat tekst/dia’s toe te voegen.Ook zal ik meer code toelichten in de aangegeven link. Daarna zal ik in WoW laten zien hoe de eerder besproken theorie in de praktijk uitpakt.Bronnen:http://www.ai-blog.net/archives/000152.html - Artikel over unit pathfinding.http://udn.epicgames.com/Three/NavigationMeshReference.html - Constructie van navigationmeshes uitgelegd door Epic Games (Unreal Engine).http://www.navpower.com/gdc2006_miles_david_pathplanning.ppt - Een presentatie van David Miled op GDC 2006http://www.lsi.upc.edu/~npelechano/Oliva_MIG2011.pdfhttp://arcemu.org – De gebruikte WoW emulator omnavigationmesh in de praktijk te laten zien. World of Warcraft – Game wordt gebruikt als voorbeeld.
  2. http://vidyalife.blogspot.nl/2012/01/nostalgia-sunday-rollercoaster-tycoon.html - BewerktRoller Coaster Tycoon is een perfect voorbeeld van een waypoints systeem. Ook al is er een groot plein zullen de bezoekers alsnog in dezelfde paden lopen, van tile tot tile.
  3. Hier wordt een waypoint structuur aangegeven, zoals te zien zijn er veel nodes die kris-kras over de wereld lopen. Mogelijkheid: smoothing, maar brengt extra problemen.
  4. Hier is een navigationmesh te zien bestaande uit meerdere verbonden nodes.
  5. Een voorbeeld van een navigation map in de stad “Dalaran” in WoW.
  6. Waypoints zijn statischer, een navigationmesh kan smoothen zonder risico’s. Dit gebeurt door simpelweg de nodes te bekijken en daartussen het optimale (en realitische) bepalen.
  7. Waypoints zijn kris-kras, met een navigationmesh is er praktisch altijd de snelste route. Dit introduceert problemen, aangegeven in de volgende dia.
  8. http://en.wikipedia.org/wiki/Cubic_Hermite_spline#Catmull.E2.80.93Rom_spline – Uitleg Catmull-RomsplineEen mogelijk oplossing tot het zigzaggen is door de paden te smoothen. D.m.v. bijv. een Catmull-Romspline kan er worden gesmooth tussen de waypoints, dit introduceert problemen als bijv. de mogelijkheid tot het vallen in een rivier.
  9. Een navigationmesh kan m.b.v.raycasting in de LoS obstakels aan zien komen en daarop het path aanpassen.
  10. Bij verschillende groottes van units kan de radius van de unit als afstand tussen de mesh node en unit worden aangehouden. In het geval vanwaypoints zou er voor elk type unit een verschillend waypoint-netwerk gemaakt moeten worden.
  11. De eerste mesh wordt gemaakt m.b.v. het ophalen van vlakken m.b.v. raycasts. Hierdoor ontstaat een groot (nog niet geoptimaliseerd) grid.
  12. Door een vooraf ingestelde stap-afstand kan het zijn dat er mogelijk en grote afstand ontstaat tussen zijvlakken en bijvoorbeeld muren. Door een steeds kleinere stap-afstand te gebruiken kan er alsnog een nauwkeurige mesh ontstaan.
  13. Alle vierkanten worden dan zoveel mogelijk gemerged, als doel zo groot mogelijke vlakkken te genereren. Vooral bij grote open gebieden scheelt dit enorm.
  14. De tweede simplificatie stap is het mergen van polypunten die vlak bij elkaar liggen, herhalende structuren zoals trappen zijn dan nog niet “versimpeld”.
  15. Hier is te zien hoe trappen zijngesmooth, dit maakt voor de pathfinding uiteindelijk niet uit.
  16. Uiteindelijk worden van alle vierkanten polygons gemaakt om het aantal nodes te verminderen. Het is nu goed te zien dat nodes eigenlijk alleen onstaan bij hoeken van objecten/muren.
  17. In veel games zijn waypoints nog steeds nodig (bij bijv. patrols), dit is nog steeds mogelijk door punten globaler aan te geven waarin de unit dan zelf een pad vind. Ook andere AI events kunnen worden geplaatst binnen de navigationmesh, de unit kan hierin dan zijn eigen pad aanmaken.
  18. Er is eerder een oplossing opgenoemd voor dynamische obstakels, namelijk het gebruik van raycasts. Dit kan echter inefficiënt worden, vooral bij meerdere units.Een mogelijk betere oplossing is het splitten van de meshes om het obstacle heen, deze worden dan vermeervoudigd. Daarna kan in het bestaande systeem alsnog het pad worden berekend.
  19. Units gebruiken de navigationmesh via de “next corner” methodiek. Er wordt gekeken naar de eerstvolgende collision met een hoek, waar hij dan heen stuurt.
  20. Hierbij een realistisch voorbeeld van een eerste hoek, in de volgende dia’s wordt uitgelegd hoe er aan deze hoek wordt gekomen.
  21. Er zijn een soort van portals tussen de gebieden, deze worden o.a. gebruikt om de eerstvolgende hoek te ontdekken.
  22. Iteratie 1: Links
  23. Iteratie 1: Rechts
  24. Iteratie 1: Finished
  25. Iteratie 2: Links
  26. Iteratie 2: Rechts
  27. Iteratie 2: Finished
  28. Iteratie drie: Links
  29. De iteratie is afgelopen, de eerstvolgende hoek is ontdekt.
  30. Hier start ik twee keer een WoW emulator waar ik op beide één keer inlog, eentje met navigationmeshesenabled, de ander disabled. Hierbij laat ik ook de performance en het geheugen zien, en hoe enemies in beide emulaties reageren op de gespeelde character.