Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 ·...

31
Motion Graph Jehee Lee Seoul National University

Transcript of Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 ·...

Page 1: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games

Motion Graph

Jehee Lee Seoul National University

Page 2: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games

Motion Database

• In video games – Many short, carefully planned, labeled motion clips – Manual processing

• Motion graphs – Extended, unlabelled sequences – Automatic processing

Page 3: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games
Page 4: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games

Maze – Sketch Interface

Page 5: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games

Re-sequence motion frames

Motion capture region Virtual environment

Sketched path

Page 6: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games

Re-sequence motion frames

Motion capture region Virtual environment

Sketched path

Page 7: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games

Data Acquisition

• “Poles and Holes” rough terrain

Page 8: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games

Terrain Navigation

Page 9: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games

Unstructured Input Data

• A number of motion clips – Each clip contains many frames – Each frame represents a pose

Page 10: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games

Unstructured Input Data

• Connecting transitions – Between similar frames

Page 11: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games

Unstructured Input Data

Page 12: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games

Pruning Transitions

• Reduce storage space – O(n^2) will be prohibitive

• Better quality – Pruning “bad” transitions

• Efficient search – Sparse graph

i

j

Page 13: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games

Pruning Rules

• Contact state: Avoid transition to dissimilar contact state

• Likelihood: User-specified threshold

• Similarity: Local maxima

• Avoid dead-ends: Strongly connected components

Page 14: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games

Comparison to Real Motion

• Environment with Physical Obstacles

Page 15: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games

Comparison to Real Motion

Page 16: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games

Data-Driven Keyframing

• Inbetweening – Pose – Location (or continuous path) – Pose and Time – Pose and Location – Pose and Time and Location

Page 17: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games

Data-Driven Keyframing

• Criterion – Pose Accuracy

• In general, there is no exact match • Motion editing techniques can be used to

achieve exact interpolation

– Minimum time • # of frames traversed through motion graph

– Minimum distance • Distance traversed by the center of gravity

Page 18: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games

Search Techniques

• Graph traversal – Pose-to-pose inbetweening

• Branch-and-Bound – A*-algorithm – Limited horizon on-line algorithm

• Dynamic programming – Pose-Time space – Pose-Location space

Page 19: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games

Graph Traversal

• Pose-to-pose inbetweening

Keyframe1 Keyframe3Keyframe2

Page 20: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games

Graph Traversal

• Pose-to-pose inbetweening

Keyframe1 Keyframe3Keyframe2

Page 21: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games

Dynamic Programming• Pose and time

Pose j

Key t1

Key t2

Key t3

Key t4

( ) ),(),ˆ()1,ˆ(min),(ˆ

kjKjjTtjDtjD tj++−=

Keyframe match costTransition cost

Page 22: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games
Page 23: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games

Branch-and-Bound Search

Motion capture region Virtual environment

Sketched path

Page 24: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games

Branch-and-Bound Search

• A*-algorithm – Optimal search techniques – Infinite horizon – Competitive with discrete state space – Slow and memory intensive in continuous domain

Page 25: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games
Page 26: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games

Branch-and-Bound Search

• On-line search – Non-optimal – Limited horizon – Much faster than A* algorithm – Better suited for on-line applications

Page 27: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games

Dynamic Programming

• Pose and (fixed) location – Randomly sample locations – min_full.avi (Choi, Lee, Shin 2003)

Page 28: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games
Page 29: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games
Page 30: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games

Dynamic Programming

• Pose and (relative) location – Precompute and tabulate expected future rewards – mocap_boxer.mov (Lee and Lee 2004)

),( esV

Page 31: Motion Graph - SNU Movement Research Labmrl.snu.ac.kr/.../16_MotionGraph.pdf · 2016-11-29 · Motion Graph Jehee Lee Seoul National University. Motion Database • In video games