O'Reilly logo

AI Game Programming Wisdom 4 by Steve Rabin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

4.1RTS Terrain Analysis: An Image-Processing Approach

Enigma Software ProductionsJulio Obelleiro

julio.obelleiro@gmail.com

Raúl Sampedro

rghoul@gmail.com

David Hernández Cerpa

david.hernandez.cerpa@gmail.com

In real-time strategy (RTS) games, high-level AI systems control multiple units, which must be used wisely to defeat the enemy. One prerequisite for accomplishing this is for the AI to have an understanding of the terrain in the area where the battle is taking place (i.e., a terrain analysis). Using this analysis, for example, the AI can decide where to deploy units or find a path to a target that avoids enemy troops. Ideally, the AI precomputes the terrain analysis to minimize the impact on runtime performance.

This article introduces the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required