This week’s
lecture was by Arno Kamphuis, who is a teacher at our school. His lecture was
about group motion planning. Which was for a part about research that Arno did
at Utrecht University.
Using some
interesting examples of both some older and some modern game he explained the
problems that most games have with group motion planning.
Afterwards
he explained what group motion planning is. The definition of group motion
planning is the following: ”Given one or more character (NPCs) at a certain
start position, find a path for each of these NPCs such that they reach a goal
position without colliding with the environment”.
Making a
group move from one point to another needs two things. Creating a route, and
steering the group. And if you combine these two the right way you can move a
group from one random place to another random place in a realistic way.
For
calculating routes there is one basic algorithm that a lot of games use. It’s
called A*. It works by putting waypoints on the map and calculating how close
the waypoints are to the goal and how much it costs to get from the start to
the waypoint. If you do this often enough you’ll get a route.
There are
faster methods than the basic A* like D* or D* lite but those algorithms are
really complex and therefore they are usually not used in games. Which I think
is a shame, because there should be more effort in perfecting algorithms like
this for time critical applications such as games.
The
waypoints that are used for planning a route are usually generated at level
creation, because compiling a level for a game isn’t as time critical as
playing the game in realtime. By doing this while the level is compiling there are
way more options to perfect the waypoints. However, computer generating perfect
waypoints is harder than is seems like.
The second
part of group motion planning is the steering. Steering on itself is pretty
simple. You have three basic actions that units need to do.
1. Units need to stay separated from
each other(units can’t stand too close to each other)
2. Units need to stay aligned with
other units(this way all units will move in the same general direction)
3. Units need to stick together(this
way single units won’t be left out)
If you
combine just these three steering basics with a basic path. You get basic group
motion planning. This still has quite a lot of problems and can be optimized a
lot.
There are
still a lot of interesting problems on the topic of group motion planning that
still need to be researched. For example, taking the mood of the units into
account while planning or making a more realistic model of which movements a
character is able to make.
I
personally thought the lecture way very interesting and it gave me a better
idea on how group motion planning works. It also made me think about the
problems with is that I had never thought about before.