컴퓨터 게임에서 전술적 경로 찾기를 위한 휴리스틱 학습

Learning Heuristics for Tactical Path-finding in Computer Games

  • 유견아 (덕성여자대학교 컴퓨터공학부)
  • 발행 : 2009.09.30

초록

컴퓨터 게임에서 전술적 경로 찾기란 캐릭터의 이동 경로를 결정할 때, 최단 거리나 최소 시간 등의 요소만이 아니라 주변의 전술 정보를 고려하여 경로를 선택해야 하는 경로 찾기를 말한다. 경로 찾기에 전술 정보를 포함하는 한 가지 방법은 게임에 필요한 전술 정보를 각 정보의 중요도에 따라 가중치를 부여하고 가중 합으로 휴리스틱 함수를 표현하는 것이다. 전술 정보의 가중치의 결정은 경로를 찾기 위한 탐색의 성능과 구해지는 경로의 특성을 결정짓기 때문에 매우 중요하다. 본 논문에서는 레벨 설계자가 캐릭터의 특성에 맞는 경로 표본을 제공하면 현재 가중치에 의해 탐색된 경로와 주어진 표본 경로와의 차이를 이용하여 더 나은 가중치로 조정함으로서 휴리스틱 함수를 개선하는 방법을 제안한다. 제안된 방법은 탐색 오차를 발견하여 휴리스틱을 학습하기 위해 수정된 탐색 알고리즘과 퍼셉트론-유사 가중치 갱신 공식을 포함한다. 시뮬레이션 결과를 통해 전술 정보를 이용한 경로 계획과 기존의 경로 찾기의 차이를 보여주며 학습의 성능에 영향을 주는 요인들에 대해 분석하고 실제 게임 환경에 적용한 예를 보여 준다.

Tactical path-finding in computer games is path-finding where a path is selected by considering not only basic elements such as the shortest distance or the minimum time spend but also tactical information of surroundings when deciding character's moving trajectory. One way to include tactical information in path-finding is to represent a heuristic function as a sum of tactical quality multiplied by a weighting factor which is.. determined based on the degree of its importance. The choice of weighting factors for tactics is very important because it controls search performance and the characteristic of paths found. In this paper. we propose a method for improving a heuristic function by adjusting weights based on the difference between paths on examples given by a level designer and paths found during the search process based on the CUITent weighting factors. The proposed method includes the search algorithm modified to detect search errors and learn heuristics and the perceptron-like weight updating formular. Through simulations it is demonstrated how different paths found by tactical path-finding are from those by traditional path-finding. We analyze the factors that affect the performance of learning and show the example applied to the real game environments.

키워드

참고문헌

  1. I. Millington, "Tactical and Strategic AI," Artificial Intelligence for Games, pp. 473-562, Morgan Kaufmann, 2006.
  2. H. Daume III and D. Marcu, "Learning as Search Optimization: Approximate Large Margin Methods for Structured Prediction," ICML-05, pp. 169-176, 2005.
  3. Y.Xu, A.Fern, and S.Yoon, "Discriminative Learning of Beam-Search for Planning," In Proceedings of International Joint Conference on Artificial Intelligence, pp. 2041-2046, 2007.
  4. R. Straatman, W. van der Sterren., and A. Beij, "Killzone's AI: dynamic procedural combat tactics," In Proceedings of Game Development Conference, 2005.
  5. L. Liden, "Strategic and Tactical Reasoning with Waypoints," In: S. Rabin (eds.): AI Game Programming Wisdom, Charles River Media, pp. 211-220, 2002.
  6. A.Kamphuis, M. Rook, and M.H. Overmas, "Tactical Path Finding in Urban Environment," In Proceedings First International Workshop on Crowd Simulation, pp. 51-60, 2005.
  7. M. Rook and A. Kamphuis, "Path Finding using Tactical Information" In Poster Proc. Eurographics/ACM SIGGRAPH Symposium on Computer Animation, pp. 18-19, 2005.
  8. B. Stout, "Smart Moves: Intelligent Path finding," Game Developer Magazine, pp. 28-35, Apr., 1996.
  9. J. Matthews, "Basic A* Pathfinding Made Simple," In: S. Rabin (eds.): AI game Programming Wisdom, Charles River Media, pp. 105-113, 2002.
  10. S. Woodcock, "Game AI The State of the Industry," Game Developer Magazine Aug., pp. 34-43, 2000.
  11. S. Rabin, "A* Speed Optimizations and A* Aesthetic Optimizations," In: M. Deloura, (eds.): Game Programming Gems. Charles Rive Media, pp. 264-287, 2000.
  12. K Yu, "Finding a Natural-Looking Path by Using Generalized Visibility Graphs," PRICAI-2006, pp. 170-179, 2006.
  13. P. Tozour, "Search Space Representations," In: S. Rabin (eds.):AI Game Programming Wisdom 2, Charles Rive Media, pp. 85-102, 2004.