computer graphics
play

Computer Graphics Si Lu Fall 2017 - PowerPoint PPT Presentation

Computer Graphics Si Lu Fall 2017 http://web.cecs.pdx.edu/~lusi/CS447/CS447_547_Comp uter_Graphics.htm 11/27/2017 Last time o Ray tracing 2 Today o Animation o Final Exam: 14:00-15:30, Novermber 29, 2017 n To-know list available 3 CS


  1. Computer Graphics Si Lu Fall 2017 http://web.cecs.pdx.edu/~lusi/CS447/CS447_547_Comp uter_Graphics.htm 11/27/2017

  2. Last time o Ray tracing 2

  3. Today o Animation o Final Exam: 14:00-15:30, Novermber 29, 2017 n To-know list available 3

  4. CS 410/510: Introduction to Visual Computing o Next winter o By Simon Niklaus color transfer n filters and their application n multiresolution representations n image alignment / registration n o panorama stitching n image blending n high dynamic range n image warping and interpolation frame interpolate o o morphing image segmentation n 4

  5. Animation o Animation is about bringing things to life o Technically: n Generate a sequence of images that, when played one after the other, make things move n One image is called a frame 24 frames per second for film, resolution approx 1600x1200, good anti- o aliasing o 30 frames per second for NTSC video, resolution less than 640x480 o 60+ frames per second for “twitch” computer games, 640x480 or higher resolution n Interlacing: Display every second row for one frame, every other row for the next. Used in NTSC TV and older monitors o demo: https://www.youtube.com/watch?v=H_o5h5SK_70 5

  6. Perceptual Issues o We perceive many still images in rapid succession as continuous motion Even if there is a transition period between the images n n Can even put distracters in and motion is still perceived o You can be fooled, however, if the flicker rate is incorrect o The frame rate for film was perceptually chosen 6

  7. Animation Issues o When evaluating an animation technique or application, the following things should be considered: How fast can the images be generated? n n How easy is it to control the appearance of the animation? n How much human expertise is required to generate the animation? n Can the animation be generated in response to a user’s action (interactive animation)? o Application driven: Different applications have different requirements: n Feature film animation is different from interactive gaming animation 7

  8. The 11 Principles o Developed at Disney over the 1920s and 1930s o Described by John Lasseter (Pixar) 1987 o Squash-and-Stretch, Timing, Anticipation, Follow Through and Overlapping Action, Straight Ahead Action and Pose-to-Pose Action, Slow In and Out, Arcs, Exaggeration, Secondary Action, Appeal o Basically, principles are driven by: Perceptual factors, such as directing the viewer’s attention n and smoothing the motion for easier perception Conveying emotion through motion n 8

  9. Basic Animation Techniques o Keyframe animation Animator specifies important positions throughout the n animation – the keyframes Someone or something fills in the intermediate frames – n inbetweening , or just ’tweening o Motion capture System captures motion data from a real enactment of the n animation The data then drives a virtual character or object n o Procedural animation n A set of equations or rules are evaluated to determine how the animation behaves 9

  10. Keyframing o The original way to animate, and still the most common form for feature animation Process has shifted to computers, but basic approach is the n same o Underlying technique is interpolation n The in-between frames are interpolated from the keyframes Originally done by armies of underpaid animators n Now done with computers n n Which of the techniques that we have learned about is used extensively for keyframe animation? 10

  11. Interpolation o Interpolating splines are smooth curves that interpolate their control points For example, Cardinal cubics ( Shirley book ch. 15.5.3) n o Perfect for keyframe animation o Typically, time is directly associated with the parameter value, controlling speed 2 3 1 Keyframes Animation 11

  12. More Interpolation o Anything can be keyframed and interpolated Position, Orientation, Scale, Deformation, Patch Control n Points (facial animation), Color, Surface normals… o Special interpolation schemes for things like rotations n Use quaternions to represent rotation and do spherical interpolation o Control of parameterization controls speed of animation 12

  13. Motion Capture o Extract data from real-world people acting out a scene o Many techniques for getting the data: n Optical – take video and extract motion n Magnetic/Radio – attach magnets, transponders and use sensors to get location n Mechanical methods of extracting motion (for small motions) o Most methods have some problems, all are limited in the complexity of the scenes they can capture n Solution: Break scenes into smaller pieces and re-construct later 13

  14. Motion Capture Example From http://www.batou.fr/wp-content/uploads/motion_capture_1.jpg 14 demo: https://www.youtube.com/watch?v=4NU9ikjqjC0

  15. Motion Capture in Use o Motion capture is one of the primary animation techniques for computer games Gather lots of snippets of motion capture n o e.g.: Several ways to dunk, dribble, pass n Arrange them so that they can be pieced together smoothly n At run time, figure out which pieces to play to have the character do the desired thing o Problems: Once the data is captured, it’s hard to modify for a different purpose 15

  16. Face animation https://www.youtube.com/watch?v=ohmajJTcpNk 16 Thies, etc. Face2Face: Real-time Face Capture and Reenactment of RGB Videos. CVPR 2016

  17. Procedural Animation o Animation is generated by writing a program that outputs the position/shape/whatever of the scene over time o Generally: Program some rules for how the system will behave n Choose some initial conditions for the world n Run the program, maybe with user input to guide what happens n o Advantage: Once you have the program, you can get lots of motion o Disadvantage: The animation is generally hard to control, which makes it hard to tell a story with purely procedural means 17

  18. Particle Systems o A particle has: n A position in the world n Rules for how it moves over time Rules for how it is drawn n o A particle system: Controls when particles are created and destroyed n n Makes sure that all the particles are updated 18

  19. Smoke Particle System o Constantly create particles o Particles move upwards, with turbulence added n Ken Perlin: An academy award o Draw them as partially transparent circles that fade over time 19

  20. Movie Particle Systems o Particle systems are the standard way of doing smoke and water spray o Examples from Perfect Storm (lots of water) n All images from Industrial Light and Magic (ILM) 20

  21. Basic Ocean o Ocean created with Computational Fluid Dynamics 21

  22. Flowing Water o Water from previous frame flowing over boat 22

  23. Boat’s Spray o Particles are created where the boat meets the ocean 23

  24. Impact Spray o Particles created where boat and ocean hit hard 24

  25. Perfect Storm – Composite https://www.youtube.com/watch?v=W9Tdw5nG4dQ&t=18s 25

  26. Spring-Mass Systems o Model objects as systems of springs and masses o The springs exert forces, and you control them by changing their rest length o A reasonable, but simple, physical model for muscles o Advantage: Good looking motion when it works o Disadvantage: Expensive and hard to control 26

  27. Spring mass fish 27 Due to Xiaoyuan Tu, http://www.dgp.toronto.edu/people/tu

  28. Spring mass fish http://www.dgp.toronto.edu/~tu/animations.html 28

  29. Physically-Based Models o Create a model based on the physics of a situation, and just solve for what happens o Has been applied to: Colliding rigid objects n Cloth n An example: o http://www.youtube.com/watch?v=04nXlhdPxB4&noredirect=1 n Water n Smoke o https://www.youtube.com/watch?v=7cC-_-aqx18 Squishy objects n Humans n New ones every year n o Problem: Expensive, hard to control, and not necessarily realistic 29

  30. Mixing Techniques o Techniques can be mixed and matched in the same animation o For example, apply physical secondary motion on top of key-framed primary motion n Particularly appropriate for cloth o Mix motion capture and physics: n Motion captured person kicks a ball which is then physically simulated to find out where it goes 30

  31. Animation Summary (brief) Technique Control Time to Computation Interactivity Create Cost Key-Framed Excellent Poor Low Low Motion Good at time Medium Medium Medium Capture of creation, after that poor Procedural Poor Poor to High High create program 31

  32. Current Challenges o Human characteristics n Hair animation and rendering n Skin rendering n Facial animation n Walking, running, climbing High quality real time o Fluids, hair, physics n Realistic lighting and shading n o Control with quality n Making it easier for artists and directors to get the results they want 32

  33. Next Time o Final Exam 33

Download Presentation
Download Policy: The content available on the website is offered to you 'AS IS' for your personal information and use only. It cannot be commercialized, licensed, or distributed on other websites without prior consent from the author. To download a presentation, simply click this link. If you encounter any difficulties during the download process, it's possible that the publisher has removed the file from their server.

Recommend


More recommend