Path finding
Exercise 12-1
Path finding Exercise 12-1 Visibility graph: Nodes are corner - - PowerPoint PPT Presentation
Path finding Exercise 12-1 Visibility graph: Nodes are corner points of all obstacles, start and target An edge between a pair of nodes (a,b) exists if and only if a and b can see another, i.e. if the line [a,b] is not interrupted by
Exercise 12-1
target a) Visibility graph:
and b can see another, i.e. if the line [a,b] is not interrupted by an obstacle. Edges of polygons are edges in the visibility graph, too.
target a) Visibility graph:
delivers shortest path between start and target
target b) For extended objects which are invariant to point reflection:
Minkowski-sum
shortest path of the center of the circle through the expanded obstacles.
not computable precisely.
(e.g. hexagon, octagon)
target b) Not computable, but obvious solution:
target Annotation: The triangle is not invariant to point reflection- If approximated with a circle, there would be no path to the target. c)
target c) Approach from robotics (motion planning) which may be too expensive for MMOs:
point) to every polygon (=Minkowski sum of the object point reflected by the reference point)
also robotic work space-> configuration space (C-Space, e.g. all positions of a roboter in a room), C-obstacles, free space)
target c) Now the shortest path to the target is again the shortest path in the visibility graph.
target c) Now the shortest path to the target is again the shortest path in the visibility graph.
target c) Now the shortest path to the target is again the shortest path in the visibility graph.
target c) Path finding of such a triangle is thus not solvable with the rather coarse approximation of a circle. But it is possible using the Minkowski difference, which though depends
shapes in a game
target c) Addition: if another corner of the triangle is chosen as reference point, it looks like this:
target c) Addition: if another corner of the triangle is chosen as reference point, it looks like this:
target c) Addition: if another corner of the triangle is chosen as reference point, it looks like this:
target c) Addition: Comparison: The orange path was the shortest path found previously. As we can see, it is the same, so the shortest path does not depend on the reference point chosen.
4 7 2 4 6 5 9 2 6 1 4 2 1 2 7 3 max min min max
max min min max
7 β=7 max min min max
4
4 7 max min min max
4
4 7 max min min max
4
4 7 α=4 max min min max
4
4 7 2 α=4 max min min max
4
4 7 2 β=2 α=4 max min min max
4
4 7 2 β=2 α=4 β< α max min min max
4 4
4 7 2 β=2 β< α max min min max
4 4
4 7 2 β=4 max min min max
4 4
4 7 2 6 β=4 max min min max
4 4
4 7 2 6 β=4 β=6 max min min max
4 4
4 7 2 6 5 β=4 β=6 max min min max
4 4 5
4 7 2 6 5 β=4 α=5 max min min max
4 4 5
4 7 2 6 5 β=4 α=5 β<α max min min max
4 4 4 5
4 7 2 6 5 α=4 max min min max
4 4 4 5
4 7 2 6 5 6 α=4 β=6 max min min max
4 4 4 5 1
4 7 2 6 5 6 1 α=4 max min min max
4 4 4 5 1
4 7 2 6 5 6 1 α=4 α=1 max min min max
4 4 4 5 1
4 7 2 6 5 6 1 4 α=4 α=1 β=4 max min min max
4 2 4 4 5 1 2
4 7 2 6 5 6 1 4 2 α=4 max min min max
4 2 4 4 5 1 2
4 7 2 6 5 6 1 4 2 α=4 β=2 max min min max
4 2 4 4 5 1 2
4 7 2 6 5 6 1 4 2 α=4 β=2 β<α max min min max
4 4 2 4 4 5 1 2
4 7 2 6 5 6 1 4 2 max min min max
Search strategy: Post-order (right partial tree first)
4 7 2 4 6 5 9 2 6 1 4 2 1 2 7 3 max min min max
3 β=3 max min min max
3
7 3 α=3 max min min max
3
2 7 3 α=3 β=2 max min min max
3
2 7 3 α=3 β=2 β<α max min min max
3 3
2 7 3 β=3 max min min max
3 3
2 2 7 3 β=3 β=2 max min min max
3 2 3
1 4 2 2 7 3 β=3 α=2 β=1 max min min max
3 2 3
1 4 2 2 7 3 β=3 α=2 β=1 β<α max min min max
3 2 2 3
4 2 2 7 3 β=3 1 max min min max
3 2 2 2 3
4 2 2 7 3 α=2 1 max min min max
3 2 2 2 3
2 4 2 2 7 3 α=2 β=2 1 max min min max
3 2 2 2 2 3
9 2 4 2 2 7 3 α=2 α=2 1 max min min max
3 2 2 2 2 3
5 9 2 4 2 2 7 3 α=2 α=2 β=5 1 max min min max
3 2 2 5 2 2 3
6 5 9 2 4 2 2 7 3 α=2 α=2 1 max min min max
5 3 2 2 5 2 2 3
6 5 9 2 4 2 2 7 3 α=2 1 max min min max
5 3 2 2 5 2 2 3
6 5 9 2 4 2 2 7 3 α=2 1 β=5 max min min max
5 3 2 2 5 2 2 3
4 6 5 9 2 4 2 2 7 3 α=2 1 β=5 β=4 max min min max
5 3 2 2 2 5 2 2 3
2 4 6 5 9 2 4 2 2 7 3 α=2 1 β=5 α=2 max min min max
5 3 2 2 2 5 2 2 3
4 2 4 6 5 9 2 4 2 2 7 3 α=2 1 β=5 α=2 β=4 max min min max
4 5 4 3 2 4 2 4 2 5 2 2 3
4 7 2 4 6 5 9 2 4 2 2 7 3 1 max min min max