Rujchai Ung-arunyawee Department of Computer Engineering Khon Kaen University.

Slides:



Advertisements
Similar presentations
Introduction to Macromedia Director 8.5 – Lingo
Advertisements

Curves Jim Van Verth Essential Math for Games Animation Problem: want to replay stored set of transformations  Generated by.
#8: Curves and Curved Surfaces CSE167: Computer Graphics Instructor: Ronen Barzel UCSD, Winter 2006.
Lab 12: Animations User Interface Lab: GUI Lab Nov 11 th, 2014.
Verbs and Adverbs: Multidimensional Motion Interpolation Using Radial Basis Functions Presented by Sean Jellish Charles Rose Michael F. Cohen Bobby Bodenheimer.
Some Introductory Programming 1. Structured Query Language (SQL) - used for queries. - a standard database product. 2. Visual Basic for Applications -
Computer graphics & visualization Key frame Interpolation.
MSc. Publishing on WWW JavaScript. What is JavaScript? A scripting language devised by Netscape Adds functionality to web pages by: Embedding code into.
Trajectory Generation How do I get there? This way!
1cs426-winter-2008 Notes  Ian Mitchell is running a MATLAB tutorial, Tuesday January 15, 5pm-7pm, DMP 110 We won’t be directly using MATLAB in this course,
1 7M836 Animation & Rendering Animation Jakob Beetz Joran Jessurun
1 Flash Actionscript Event Handling. 2 Event Handling Right now we know all about variables lets go back to our text input/output example: Suppose we.
Modelling. Outline  Modelling methods  Editing models – adding detail  Polygonal models  Representing curves  Patched surfaces.
Animation. Outline  Key frame animation  Hierarchical animation  Inverse kinematics.
ARCH 481 3d Modeling and Rendering lecture eight: animation.
CS320n –Visual Programming Interactive Programs Mike Scott (Slides 5-1)
Computer-Based Animation. ● To animate something – to bring it to life ● Animation covers all changes that have visual effects – Positon (motion dynamic)
© Siemens Product Lifecycle Management Software Inc. All rights reserved Siemens PLM Software Solid Edge ST4 Training Animating assemblies.
Scripts  Director’s scripting language is called Lingo  Lingo can be used to offer your users navigational control of the order of the scenes of your.
1 7M836 Animation & Rendering Animation Jakob Beetz Joran Jessurun
Rujchai Ung-arunyawee Department of Computer Engineering Khon Kaen University.
A D V A N C E D C O M P U T E R G R A P H I C S CMSC 635 January 15, 2013 Spline curves 1/23 Curves and Surfaces.
Business and Computing Deanery Multimedia Week 6 Animation.
Case Study: Using Macromedia Director
Module 11 Control Customization. Module Overview Overview of Control Authoring Creating Controls Managing Control Appearance by Using Visual States Integrating.
CompSci 4 Chap 5 Sec 1 Oct 13, 2005 Prof. Susan Rodger Note: thanks to Wanda Dann and Steve Cooper for slide ideas.
Rujchai Ung-arunyawee Department of Computer Engineering Khon Kaen University.
Rujchai Ung-arunyawee Department of Computer Engineering Khon Kaen University.
CS 445 / 645 Introduction to Computer Graphics Lecture 23 Bézier Curves Lecture 23 Bézier Curves.
Copyright © 2003 Pearson Education, Inc. Chapter 5 – Slide 1 by Michael Kay The Web Wizard’s Guide to Flash.
June D Object Representation Shmuel Wimer Bar Ilan Univ., School of Engineering.
Programming with Visual C++: Concepts and Projects Chapter 2B: Reading, Processing and Displaying Data (Tutorial)
Motion Tweening – Lesson 81 Motion Tweening Lesson 8.
A Lap Around Windows Presentation Foundation. Why hasn’t UX taken off in software? It’s Difficult! Animation 2D 3D Documents Styled Controls Video Windows.
Rujchai Ung-arunyawee Department of Computer Engineering Khon Kaen University.
Controlling a Virtual Camera Ross Ptacek University of Alabama Birmingham.
Lab 11: Animation User Interface Lab: GUI Lab Nov. 6 th, 2013.
Module 13 Animations in WPF. Module Overview Using Animations Using Triggers Implementing Data Visualizations.
Rujchai Ung-arunyawee Department of Computer Engineering Khon Kaen University.
CS324e - Elements of Graphics and Visualization Timing Framework.
Rujchai Ung-arunyawee Department of Computer Engineering Khon Kaen University.
1 Catching up on Rich Clients (round 1) Mike Ormond, Mike Taulty Developer & Platform Group Microsoft Ltd
Cubic Spline Interpolation. Cubic Splines attempt to solve the problem of the smoothness of a graph as well as reduce error. Polynomial interpolation.
Zhang & Liang, Computer Graphics Using Java 2D and 3D (c) 2007 Pearson Education, Inc. All rights reserved. 1 Chapter 11 Animation.
CSCE 441: Keyframe Animation/Smooth Curves (Cont.) Jinxiang Chai.
CSCE 441: Keyframe Animation/Smooth Curves (Cont.) Jinxiang Chai.
Tutorial 7 Creating Animations. XP Objectives Learn about animation Create a timeline Add AP divs and graphics to a timeline Move and resize animation.
Interactive Programming Alice. Control of flow Control of flow -- how the sequence of actions in a program is controlled. What action happens first, what.
Stage 17 Play Lab: Create a Story
Fall UI Design and Implementation1 Lecture 13: Animation.
Curves University of British Columbia CPSC 314 Computer Graphics Jan-Apr 2013 Tamara Munzner.
CS552: Computer Graphics Lecture 19: Bezier Curves.
PaintPictureBoxDemo Refers to the PaintPictureBoxDemo Visual Basic Program Included With The Lecture.
Blender Animations Josh Fujita-Yuhas. Beginning Animation Default vs. Animation view Timeline – Keyframes F-Curve Editor Dope Sheet.
Object Modeling: Curves and Surfaces CEng 477 Introduction to Computer Graphics.
CSCI480/582 Lecture 9 Chap.2.2 Cubic Splines – Hermit and Bezier Feb, 11, 2009.
Trajectory Generation
Lesson 6: Enhancing Presentations
Click here to advance to the next slide.
CSE System Interface Design
Chapter 15 Event-Driven Programming and Animations
.NET and .NET Core 7. XAML Pan Wuming 2017.
Computer Graphics Imaging Ying Zhu Georgia State University
UNIT-5 Curves and Surfaces.
Interpolation and Basic Techniques
CSCE 441: Keyframe Animation/Smooth Curves (Cont.)
Scratch Summer Session 2
Lecture 21: B Spline Curve
Tweening along a path.
Computer Animation Ying Zhu Georgia State University
Presentation transcript:

Rujchai Ung-arunyawee Department of Computer Engineering Khon Kaen University

Understanding WPF Animation Timer-Based Animation Developers have to build their own animation systems from scratch Set Timer->Event Handler->Trigger Painting-> Render in Painting code Property-Based Animation WPF animation is simply a way to modify the value of a dependency property over an interval of time Every animation acts on a single dependency property To animate a property, you need to have an animation class that supports its data type

Animation Classes System.Windows.Media.Animation namespace 17 TypeNameAnimation classes, which use interpolation 22 TypeNameAnimationUsingKeyFrames classes, which use key frame animation 3 TypeNameAnimationUsingPath classes, which use path-based animation Common used properties: From, To, By, Duration, AutoReverse, and RepeatBehavior

Animations in the Code

Simultaneous Animations

Declarative Animation Storyboard It’s the XAML equivalent of the BeginAnimation() method. It allows you to direct an animation to the right element and property. Event trigger. It responds to a property change or event (such as the Click event of a button) and controls the storyboard. For example, to start an animation, the event trigger must begin the storyboard.

The Storyboard Can use it to group multiple animations, to control the playback of animation—pausing it, stopping it, and changing its position Use TargetProperty attached properties to point to a specific property Use TargetName attached properties to point to a specific element

To put several animations in the same storyboard but allow each animation to act on a different element and property.

Event Triggers

Simultaneous Animations

Animation Frame Rate WPF always attempts 60 frames per second, unless you tell it otherwise. Use the Timeline.DesiredFrameRate attached property on the storyboard

Key Frame Animation An animation that’s made up of many short segments. Each segment represents an initial, final, or intermediary value in the animation. When you run the animation, it moves smoothly from one value to another.

Linear Key Frame Animations Transitions smoothly between the key frame values

Discrete Key Frame Animations No interpolation is performed When the key time is reached, the property changes abruptly to the new value

Spline Key Frame Animations Use spline interpolation to move smoothly from one key value to another You define a cubic Bézier curve to the KeySpline property of key frames.

Path-Based Animation Helps you move a visual object along a path

Step1: Build the path Simply define as a resource To show the path, you simply need to add a Path element that uses the geometry you’ve defined

Step2: Create a visual object

Step3: create the animations