Graphics 2D 2 Subject:T0934 / Multimedia Programming Foundation Session:7 Tahun:2009 Versi:1/0.

Slides:



Advertisements
Similar presentations
Introduction to Web Design Lecture number:. Todays Aim: Introduction to Web-designing and how its done. Modelling websites in HTML.
Advertisements

Department of nskinfo i-education
2.02D Computer Animation Software and Design Guidelines
Animation Marco Gillies. Computer Animation Making things move A key aspect of computer graphics Non-realtime for films Realtime for virtual worlds and.
Multimedia Authoring1 Animation What is Animation Animation is defined as the act of making something come alive. It is concerned with the visual or aesthetic.
Lesson 15 Presentation Programs.
Charmaine NormanCopyright What Is a Web Page Presented by Webpagemaker. Net Left click your mouse to view each frame, Web Page.
Audio 1 Subject:T0934 / Multimedia Programming Foundation Session:8 Tahun:2009 Versi:1/0.
JAVA API (GUI) Subject:T0934 / Multimedia Programming Foundation Session:1 Tahun:2009 Versi:1/0.
Multimedia Network Communications Subject:T0934 / Multimedia Programming Foundation Session:13 Tahun:2009 Versi:1/0.
Graphics 2D 1 Subject:T0934 / Multimedia Programming Foundation Session:6 Tahun:2009 Versi:1/0.
Image 1 Subject:T0934 / Multimedia Programming Foundation Session:4 Tahun:2009 Versi:1/0.
Macromedia Director 8 Intermediate Level Course. Ink Masks Using the Ink Mask feature will allow you to create parts of a bitmap cast member to become.
Unit 6 – Multimedia Element: Animation
ANIMATION Chapter 5. 'In his book "Web Site Usability," researcher Jared Spool found that his web site testers found animation uniformly irritating, and.
Chapter 7-Animation. Overview Introduction to animation. Computer-generated animation. File formats used in animation. Making successful animations.
Animation Pertemuan 5 Matakuliah: T0732 / Sistem Multimedia Tahun: 2007.
Ch 1 Intro to Graphics page 1CS 367 First Day Agenda Best course you have ever had (survey) Info Cards Name, , Nickname C / C++ experience, EOS experience.
Animation and Sound Pertemuan 02 Matakuliah: L0182 / Web & Animation Design Tahun: 2008.
ITIS 1210 Introduction to Web-Based Information Systems Chapter 41 How Animation on the Web Works.
Task 2 P3, P4, P5 Gladys Nzita-Mak.
6-2 2D Graphics CSNB544 Mobile Application Development Thanks to Utexas Austin.
Threads and Multimedia Animation, Images, Sound. Animation nAnimation, displaying a sequence of frames to create the illusion of motion, is a typical.
3D Objects Subject:T0934 / Multimedia Programming Foundation Session:12 Tahun:2009 Versi:1/0.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 8 This presentation © 2004, MacAvon Media Productions Animation.
Chapter 2 Getting Started: Drawing Figures. The Framebuffer Lecture 2 Fri, Aug 29, 2003.
1-1 OBJ Copyright 2003, Paradigm Publishing Inc. Dr. Joseph Otto Silvia Castaneda Christopher deCastro CSULA Macromedia Flash MX Introduction.
Animation and Double-Buffering. The animation methods described here are based on standard techniques of double-buffering applicable to most high-level.
1 Mastering the Internet and HTML Images and Image Tags.
Objective Understand concepts used to create digital animation. Course Weight : 5%
Objectives Differentiate between raster scan display and random scan display.
Lesson 1 What is Camtasia?. Lesson 2 Editing Objectives After completing the lesson, the student will be able to: Edit a basic recording Camtasia file.
Java Programming, Second Edition Chapter Seventeen Multithreading and Animation.
XP Tutorial 1 Introduction to Macromedia Flash MX 2004.
Multimedia Elements: Sound, Animation, and Video.
Chapter 7 Animation. The Power of Animation Animation grabs attention Transitions are simple forms of animation  Wipe  Zoom  Dissolve.
Addison Wesley is an imprint of © 2010 Pearson Addison-Wesley. All rights reserved. Chapter 7 The Game Loop and Animation Starting Out with Games & Graphics.
Flash Adobe Flash Introduction Kyungeun Park. Bitmap vs. Vector based  Bitmap –Bitmaps are made up of single pixels  Vector based –Vector graphics are.
Omer Boyaci. Resources  
XP Practical PC, 3e Chapter 15 1 Creating Desktop Video and Animation.
Multimedia Animation. Animation Principles Persistence of vision object seen by human eye remains mapped on retina for a brief time after viewing display.
Chapter 7 Animation Prepared by: Ms. Ma. Anna Corina G. Kagaoan College of Arts and Sciences.
Animation Basic Concepts.
Introduction to Flash Animation CS 318. Topics Introduction to Flash and animation The Flash development environment Creating Flash animations  Layers.
High Performance Java Swing Animation David Wallace Croft Presented to the Plano Java Users Group Plano, TX Copyright 2004 David Wallace Croft.
Data dan Teknologi Multimedia Sesi 07 Nofriyadi Nurdam.
PowerPoint 2010 Vocabulary.
“ Animation Through the Ages” Camelia McCallion. Main tasks What is computer animation? Hand drawn (cel) Flick books Animated cartoon Animation process.
Animation Pertemuan 09 &10 Matakuliah: O Computer / Multimedia Tahun: Feb
GAM666 – Introduction To Game Programming ● DirectDraw, the 2D component of DirectX, uses the term “surface” to mean an area of memory in which pixel data.
PyGame - Unit 1 PyGame Unit – – Introduction to PyGame.
Video 2 Subject:T0934 / Multimedia Programming Foundation Session:11 Tahun:2009 Versi:1/0.
Introduction to Animation In animation, a series of images are rapidly changed to create an illusion of movement.
PyGame - Unit 2 PyGame Unit – – Animation.
Animation in flash. Frame-by-Frame Animation An animation is made from a series of framed images displayed one after the other to create the motion. Flash.
© 2011 The McGraw-Hill Companies, Inc. All rights reserved Chapter 5: Animation.
Computer Engineering and Networks, College of Engineering, Majmaah University ANIMATION Mohammed Saleem Bhat CEN-318 Multimedia.
App Inventor Chapter 17 – Creating Animated Apps.
Reference: What is it? A multimedia python library – Window Management – Graphics geometric shapes bitmaps (sprites) – Input Mouse Keyboard.
CPT 450 Computer Graphics 12th Lecture – Animation.
TOPIC 5 - ANIMATION.
How to Create Static and Animated PowerPoint Slides
Chapter 4:- Animation Eyad Alshareef Eyad Alshareef.
Creating Desktop Video and Animation
“Animation Through the Ages”
Matakuliah : T0553/Sistem Multimedia Tahun : 2005 Versi : 5
INTERACTIVE TRANSPARENCY BUILDING A Character IN ANIMATION
GCE Applied ICT G053: Lesson 11 Website Graphics
Lecture 7: Introduction to Processing
Game Programming Algorithms and Techniques
Presentation transcript:

Graphics 2D 2 Subject:T0934 / Multimedia Programming Foundation Session:7 Tahun:2009 Versi:1/0

Bina Nusantara Learning Outcomes In the end of this session, students must be able to: –Understand the basic principal of animation –Apply correct Java syntax to animate graphics primitives

Outline Java Coordinate System Animation Java 2D Graphics Bina Nusantara

Java Coordinate System The origin is located in the upper-left corner of the window All values are positive integers. Bina Nusantara

Animation in Java Animation is the sequencing of a series of static images to generate the illusion of movement. Bina Nusantara AnimationFrame-BasedCast-Based

Frame Based Animation Displaying a sequence of static frames –Simpler –Often used in nongaming animations –Background and objects are inseparable Bina Nusantara

Cast Based Animation Moving objects independently of the background –Also called sprite animation –Often used in games –Background and objects are separable Bina Nusantara

Frame Rate –The standard frame rate is 12 fps (frames per second). –The higher the frame rate is defined, the smoother the animations is. Bina Nusantara

Transparency Use Transparency Colors –colors in an image that are unused (aren't drawn along with the rest of the colors in the image) Use transparency supported image format –GIF –PNG Bina Nusantara Transparency color

Z-Order the relative depth of objects on the screen Bina Nusantara

Z-Order Bina Nusantara Setting Control when dragged Remove object

Z-Order Bina Nusantara Change Z-order Add the object match with it’s Z-order

Animation Process 1.Using Image objects to hold image files 2.Putting a series of images into an array 3.Display the image array sequentially in high speed to produce the animation 4.Set the movements of the image array Bina Nusantara

Drawing problems Flickering –Caused by drawing the images directly and consecutively on the screen Tearing –a splitting effect that occurs when drawing to the screen happens faster than the monitor's refresh rate Solution : Double Buffering Page Flipping Bina Nusantara

Double Buffering create an image on back buffer (off screen) call the image from back buffer onto the screen (Block Line Transfer/BLT) Bina Nusantara blitting

Double Buffering Bina Nusantara Full code downloadedable in additional materi.

Double Buffering Bina Nusantara Result This animation didn’t have any flicker.

Page Flipping Use 2 buffers called back buffer and primary surface use video pointer to switch between two buffers the pointed buffer will become primary surface and the other one back buffer Bina Nusantara

Page Flipping Bina Nusantara Check whether the PC is support for Page Flipping or not Create the back buffer

Page Flipping Bina Nusantara Draw something in back buffer

Page Flipping Bina Nusantara Flip the back buffer to screen Result Full code downloadable in Additional Materi

Animation Special Effects Tweening Warping Morphing Bina Nusantara

Tweening The interpolation of two images to yield a smooth-flowing animation Also called In-betweening Typically done with points, lines, or polygons Bina Nusantara

Warping the mathematical trick of stretching and squashing an image Bina Nusantara

Morphing DissolvingWarpingTweening Bina Nusantara

References Introduction to Java Programming Daniel Liang. Ch: Java 2D API Java Media APIs PA72&dq=user+coordinate+space+coordinate+java&source=bl&ots =vxxsy6CD9Z&sig=zKOxJ9Q7hGCqtxkajz9XFa8rS1I&hl=id&ei=j4s4 SvDXJabo6gPS05zQCw&sa=X&oi=book_result&ct=result&resnum= 5#PPA94,M1 PA72&dq=user+coordinate+space+coordinate+java&source=bl&ots =vxxsy6CD9Z&sig=zKOxJ9Q7hGCqtxkajz9XFa8rS1I&hl=id&ei=j4s4 SvDXJabo6gPS05zQCw&sa=X&oi=book_result&ct=result&resnum= 5#PPA94,M1 Java 2D Graphics (Jonathan Knudsen) PA23&dq=graphics+coordinate+user+device&source=bl&ots=hVj3O 0X5Ih&sig=XUWbcpuTLCrMQ1fZDvvDOj61g0w&hl=id&ei=fCw3So PVBJf6kAXfnaCcDQ&sa=X&oi=book_result&ct=result&resnum=6#P PA90,M1 PA23&dq=graphics+coordinate+user+device&source=bl&ots=hVj3O 0X5Ih&sig=XUWbcpuTLCrMQ1fZDvvDOj61g0w&hl=id&ei=fCw3So PVBJf6kAXfnaCcDQ&sa=X&oi=book_result&ct=result&resnum=6#P PA90,M1 Bina Nusantara

References Java Graphics Techniques /ch5.htm#TheGraphicsCoordinateSystem 3/ch5.htm#TheGraphicsCoordinateSystem Sprite Animation /ch6.htmhttp:// /ch6.htm Double Buffering and Page Flipping ml ml Morphing on Your PC evry.fr/~meunier/Morphing/DrDobbs3/printableArticle.jhtml.htmlhttp://www-inf.int- evry.fr/~meunier/Morphing/DrDobbs3/printableArticle.jhtml.html Fast Page Flipping Java code example Reducing Flicker: Step 1 Override Update reduceFlicker1.html reduceFlicker1.html Bina Nusantara

References Reducing Flicker: Step 2 Clipping reduceFlicker2.html reduceFlicker2.html Reducing Flicker: Step 3 Double Buffer. reduceFlicker3.html reduceFlicker3.html Bina Nusantara