plausible motion simulation ronen barzel (on leave from pixar) john hughes (on sabbatical from...

23
Plausible motion simulation Ronen Barzel (on leave from PIXAR) John Hughes (on sabbatical from Brown)

Upload: london-wilding

Post on 30-Mar-2015

222 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Plausible motion simulation Ronen Barzel (on leave from PIXAR) John Hughes (on sabbatical from Brown)

Plausible motion simulation

Ronen Barzel (on leave from PIXAR)

John Hughes (on sabbatical from Brown)

Page 2: Plausible motion simulation Ronen Barzel (on leave from PIXAR) John Hughes (on sabbatical from Brown)

Goals

• Set context for the work to be presented in the course.

• Correct some misimpressions that people have gotten from our 1996 paper.

Page 3: Plausible motion simulation Ronen Barzel (on leave from PIXAR) John Hughes (on sabbatical from Brown)

How can you do goal-directed (physical) animation?

• Make your bed!

Page 4: Plausible motion simulation Ronen Barzel (on leave from PIXAR) John Hughes (on sabbatical from Brown)

Engineer’s Approach

Model ResultsSimulator

Page 5: Plausible motion simulation Ronen Barzel (on leave from PIXAR) John Hughes (on sabbatical from Brown)

Mid-Late 1980s

SimulatorModel ResultsModel ResultsSimulator

SimulatorForces

“Reconcile realism with control.”

Page 6: Plausible motion simulation Ronen Barzel (on leave from PIXAR) John Hughes (on sabbatical from Brown)

ModelModel

Plausible Animation

SimulatorModel Results

SimulatorModel ResultsModel ResultsSimulator

SimulatorForces

Page 7: Plausible motion simulation Ronen Barzel (on leave from PIXAR) John Hughes (on sabbatical from Brown)

Exactness?

SimulatorModel

SimulatorModelModel

Result A

Simulator

SimulatorForces

Result B

Page 8: Plausible motion simulation Ronen Barzel (on leave from PIXAR) John Hughes (on sabbatical from Brown)

Plausible Animation (2)

SimulatorModel Results

ModelModel Simulator

Model ResultsSimulator

Model ResultsModel ResultsSimulator

SimulatorForces

Page 9: Plausible motion simulation Ronen Barzel (on leave from PIXAR) John Hughes (on sabbatical from Brown)

Three versions of physical motion

• Nature• Model• Numerics

Page 10: Plausible motion simulation Ronen Barzel (on leave from PIXAR) John Hughes (on sabbatical from Brown)

“Nature’s solution”

• What really happens in the world

• What would really happen in the world if we tried it – Important question: “Tried what?” What’s the

situation we’re asking nature about?

Page 11: Plausible motion simulation Ronen Barzel (on leave from PIXAR) John Hughes (on sabbatical from Brown)

Model solution

• Might say “Mathematical model”

• A simplification of the real world– e.g. rigid body model– e.g. Newton vs. Einstein

• Chosen to capture interesting or relevant properties

• Expressed as equations of motion

Page 12: Plausible motion simulation Ronen Barzel (on leave from PIXAR) John Hughes (on sabbatical from Brown)

Numerical solution

• Approximation to analytic solution of model equations

• Given numbers describing objects & state, returns numbers describing their motion.

Page 13: Plausible motion simulation Ronen Barzel (on leave from PIXAR) John Hughes (on sabbatical from Brown)

Examine what we mean by the “correct” result

• What result should we be willing to accept? Why?

• Is there a single correct result?

Page 14: Plausible motion simulation Ronen Barzel (on leave from PIXAR) John Hughes (on sabbatical from Brown)

Graphics models only describe an approximation

• Have already made a somewhat arbitrary choice

• No need to be too insistent on it

• But let’s say it’s as good as we can get…

Page 15: Plausible motion simulation Ronen Barzel (on leave from PIXAR) John Hughes (on sabbatical from Brown)

Numerical solution is always a “cloud”

• All values within the cloud are equally accurate

• Traditional view: solver computes best answer– the “cloud” can be made arbitrarily small– cloud converges on the “correct” answer.– …but is this always true?

Page 16: Plausible motion simulation Ronen Barzel (on leave from PIXAR) John Hughes (on sabbatical from Brown)

The model may be unstable

• Consider a ball that lands exactly on the fence, can fall on either side

• Numerical cloud is disjoint• Decreasing tolerance parameter doesn’t cause

cloud to converge.• Solver chooses one side or the other arbitrarily• Either side is equally correct• A more “honest” solver would offer both sides,

let us choose between them

Page 17: Plausible motion simulation Ronen Barzel (on leave from PIXAR) John Hughes (on sabbatical from Brown)

How good are our input values?

• Often describe object as “sphere” or “plane”, etc.– Real-world objects are never exactly spherical

or planar– Texture mapping, microfacets, etc. known in

rendering to get more realistic results– Similarly we need “texturing” in simulation to

get more realistic results

Page 18: Plausible motion simulation Ronen Barzel (on leave from PIXAR) John Hughes (on sabbatical from Brown)

Consider input as a range/distribution

Yields distribution of results

• If model is stable:– Results may vary slightly– But may be observable

• If model is unstable:– Results may vary almost arbitrarily

• “Honest” solver would offer range of results

Page 19: Plausible motion simulation Ronen Barzel (on leave from PIXAR) John Hughes (on sabbatical from Brown)

In some sense, we’re saying:

• Because of limitations of computing…– We can’t really compute Nature’s solution

anyway– There are always many results that are

equally appropriate w.r.t. model and inputs– We may as well choose the one we want

Page 20: Plausible motion simulation Ronen Barzel (on leave from PIXAR) John Hughes (on sabbatical from Brown)

But even more:

• In principle we can’t know inputs with analytic accuracy

• Nature’s solution isn’t unique.– The real world includes instability– Random-number generators: dice– Chaos

Page 21: Plausible motion simulation Ronen Barzel (on leave from PIXAR) John Hughes (on sabbatical from Brown)

Ultimate claim

• In no case can we compute a single correct solution

• We can therefore choose among them.

Page 22: Plausible motion simulation Ronen Barzel (on leave from PIXAR) John Hughes (on sabbatical from Brown)

Preceding is physics, not “cheating”

Page 23: Plausible motion simulation Ronen Barzel (on leave from PIXAR) John Hughes (on sabbatical from Brown)

Coming up

• Stephen Chenney

• Jovan Popovic

• Ron Fedkiw