CPT 450 Computer Graphics 12th Lecture – Animation.

Slides:



Advertisements
Similar presentations
3.01C Multimedia Elements and Guidelines 3.01 Explore multimedia systems, elements and presentations.
Advertisements

Introduction to Digital Video. Digital Video Digital vs. Analog Analog video uses a continuous electrical signal to capture footage on a magnetic tape.
2.02F Publishing Animated Videos 2.02 Develop Computer Animations.
Chapter 10 Video.
MULTIMEDIA TUTORIAL-II SHASHI BHUSHAN SOCIS, IGNOU.
Unit 6 – Multimedia Element: Animation
Digital Media Dr. Jim Rowan ITEC 2110 Video. Works because of persistence of vision Fusion frequency –~ 40 frames.
1 Introduction to Computer Science بسم الله الرحمن الرحيم MULTIMEDIA LEVEL -9 King Khalid University Kingdom of Saudi Arabia Ministry of Higher Education.
Sounds, Images & Other Objects Website Production.
3.02 Publishing Animations
ITIS 1210 Introduction to Web-Based Information Systems Chapter 41 How Animation on the Web Works.
Skill Area 212 Introduction to Multimedia Internet and MultiMedia for SC 2.
Using Multimedia on the Web
© 2011 Delmar, Cengage Learning Chapter 11 Adding Media and Interactivity with Flash and Spry.
1 Digital Video. 2  Until the arrival of the Pentium processor, in 1993, even the most powerful PCs were limited to capturing images no more than 160.
1 Lecture 12: Multimedia Not in Web 101 Text  Important Multimedia Issues  Audio  Movies and Video  Multimedia and HTML Documents.
2.02G Publishing Animated Videos 2.02 Develop Computer Animations.
Multimedia and The Web.
2.02 Develop Computer Animations Review By: Adam Garcia,Christian Brown, Richard Williams, Tyler Borden.
VIDEO FORMATS Prof Oakes. Compression CODECS COMPRESSOR/DECOMPRESSOR A codec provides specific instructions on how to compress video to reduce its size,
DIGITAL Video. Video Creation Video captures the real world therefore video cannot be created in the same sense that images can be created video must.
Video & Scanning Overview IT 130 Web Graphics and Multimedia.
GIF - Graphics Interchange Format JPEG - Joint Photographic Experts Group PNG - Portable Network Graphics GIF images are limited to the 8 bit palette which.
Chapter 7 Animation. The Power of Animation Animation grabs attention Transitions are simple forms of animation  Wipe  Zoom  Dissolve.
Animation Basic Concepts.
Video. Using video  Carefully planned, well-executed video clips can make a dramatic difference in a multimedia project  Use video only when all other.
“ Animation Through the Ages” Camelia McCallion. Main tasks What is computer animation? Hand drawn (cel) Flick books Animated cartoon Animation process.
Image Formation Ch. 3 Kevin Bechet. Review for this Chapter Key Terms Video Formats High Definition vs Standard Definition Image Formation.
Chapter 10. The Role of Video in Multimedia  Any presentation or application that uses sound and graphics qualifies as multimedia  Clip A segment of.
Computer Engineering and Networks, College of Engineering, Majmaah University ANIMATION Mohammed Saleem Bhat CEN-318 Multimedia.
COM 205 Multimedia Applications
Unit 6 – Multimedia Element: Animation
Objective % Explain concepts used to create digital video.
Objective % Explain concepts used to create digital video.
Computer Graphics Lecture 3 Computer Graphics Hardware
Introduction to Digital Video
GIF or Not GIF? Use GIF for animation:
Animation Basic Concepts.
Creating Desktop Video and Animation
Background Perception Display Considerations Video Technology.
“Animation Through the Ages”
Digital Media Dr. Jim Rowan ITEC 2110 Video.
VIDEO.
Introduction to Animation
Digital Media Dr. Jim Rowan ITEC 2110 Video.
Web Programming– UFCFB Lecture 8
Objective % Explain concepts used to create digital video.
Introduction to Digital Video
Digital TV..
3.02 Publishing Animations
Objective % Explain concepts used to create digital video.
2.02G Publishing Animated Videos
Introduction to Digital Video
2.02F Publishing Animated Videos
3.01F Publishing Animated Videos
3.01C Multimedia Fair Uses Guidelines and Elements
Introduction to Digital Video
3.01C Multimedia Elements and Guidelines
3.01C Multimedia Fair Uses Guidelines and Elements
3.01C Multimedia Fair Uses Guidelines and Elements
Chapter 10 Video.
Web Programming– UFCFB Lecture 8
3.01C Multimedia Elements and Guidelines
Chapter 5 Animation.
(c) V/2-Com (Verhaart) Multimedia Elements & standards 4/15/2019 (c) V/2-Com (Verhaart)
Objective Explain concepts used to create digital video.
GIF or Not GIF? Use GIF for animation:
3.01C Multimedia Fair Uses Guidelines and Elements
Digital Video Faraz Khan.
Presentation transcript:

CPT 450 Computer Graphics 12th Lecture – Animation

Animation A series of images (of the same size), shown in rapid succession, to give the illusion of motion to the human brain. Animation is not new to computer graphics and was done using hand drawn frames (as in cartoons) or using still photographs (see Edison’s National Historical Site in West Orange, NJ.)

Monitors In the USA, standard TV broadcasts 30 frames per sec Computer monitor have refresh rates > 60 Hz to avoid interference with lighting. (users complain of flicker, headaches, etc.) Interlaced scan – screen refreshed at twice the frame rate. First pass, the odd number rows of pixels are updated. Second pass, the even rows of pixels are updated. This scheme makes the motion appear smoother. Progressive scan – all the rows of pixels are updated sequentially, in one pass. Used by computer monitors.

Frame Rates Frame rate (Hz) = 1 / (time interval in seconds) (frames/sec or Hz) = 1000 / (time interval in mSecs) Too slow - the motion will appear jerky, like an old silent movie. (< 12 frames per second or Hz) Too fast - faster than the monitor can update - can cause image tearing. (> ~85 Hz, see your graphics card and monitor specs.) Just right - To give the appearance of smooth motion, you should try to use a frame rate of at least 30 Hz. * Depends on speed of object moving within the frames. Larger changes between frames require faster frame rates.

Temporal Aliasing If the frame rate is too slow, you may see wheels turning in the wrong direction – a strobe effect. The is called temporal aliasing. It is analogous to spatial aliasing, except in the time domain, instead of in the spatial domain. Aliasing occurs when the rate is below the Nyquist frequency.

Video Formats A wide variety of format exist for displaying video. QuickTime, Flash, AVI, animated GIF, MPEG, MOV, … AVI is short for "Audio Video Interleave", the file format for Microsoft's Video for Windows standard MOV (Quick Time Movie File Extension) is a video and animation system developed by Apple Computer MPEG1, MPEG2 - Motion Picture Experts Group Frame rate - These formats are expected to played back at a certain frame rate. Streaming versus non-streaming Compressed versus non-compressed Common players - Windows Media Player, Apple Quick Time, Real Player

Timing Timing is very important! 2 methods Clock watching sit in a loop and watch the system clock until we reach the desired time. Do doEvents Loop While (currentTime() < endTime) Use Timer control. Important properties: Interval property (msec) Enabled property (boolean) Your code inside timer event is executed every “interval” milliseconds. Timing is not exact, but close enough for us.

Animation Options Clear and Redraw - Clear everything and then redraw everything. Store animation frames for replay or compute them in real time. (This can be computationally intensive). Save background image and only redraw changes in foreground. Double buffering

Animation Simulation - applying the laws of Physics. Used by academia, industry and the military. And in project 3! (See Stephens’ planets demo) Scripts – contain lists of positions and angles of objects at each discrete time. Sensors can be placed on human body to record these positions. This technique is used by the movie industry. Sprites: a programming abstraction that represents some object in animation. Sprite classes contain methods to moveSprite and drawSprite Tweening & Morphing – in between frames are interpolated

Project 3 Use clear and redraw approach, inside of a timer event. Choose appropriate frame rate, based on your computer’s speed. Class mySprite contains methods for drawing and moving the sprite.