Efficient Game Graphics From Flash MX 2004 Game Design Demystified.

Slides:



Advertisements
Similar presentations
Introduction to Computer Graphics Raster Vs. Vector COMMUNICATION TECHNOLOGY.
Advertisements

© 2011 Delmar, Cengage Learning Chapter 7 Importing and Modifying Graphics.
Importing and Modifying Graphics
© 2010 Delmar, Cengage Learning Chapter 7: Importing and Modifying Graphics.
Adobe Flash CS4 – Illustrated Unit E: Optimizing and Publishing a Movie.
Multimedia for the Web: Creating Digital Excitement Multimedia Element -- Graphics.
Create a new document and import files Learn about the Macromedia Fireworks window Work with bitmap and vector images Create and modify text Unit Lessons.
Image Processing, Illustration (Drawing), Paint Programs, and Scanning Dr. Warren C. Weber Cal Poly Pomona.
Designing for Web stuff you need to know before you start.
Graphics in the web Digital Media: Communication and Design
Desktop Publishing Carnegie-Mellon University Spring 2001 Dave Watterson Art Director, GATF
Introduction to Computer Graphics
Ann Ware Digital Imaging 101. Digital Image Categories BITMAPVECTOR A bitmap is an image created with pixels (small squares of color) The number of pixels.
How Images are Represented Bitmap images (Dots used to draw the image) Monochrome images 8 bit grey scale images 24 bit colour Colour lookup tables Vector.
Graphic File Formats. Objectives Understand the difference between two major categories of computer graphic images Investigate the differences between.
Part A Multimedia Production Rico Yu. Part A Multimedia Production Ch.1 Text Ch.2 Graphics Ch.3 Sound Ch.4 Animations Ch.5 Video.
1 Creating Web Graphics Outline 2.1 Graphics Types 2.2 Vector Graphics 2.3Bitmapped Graphics 2.4Graphics for the Web 2.5 GIF (Graphics Interchange Format)
WEB GRAPHICS. The Pixel Computer displays are comprised of rows and columns of pixels. Pixels are indivisible. Some common screen resolutions are:, 600.
Macromedia Flash MX Design Professional MODIFYING GRAPHICS IMPORTING AND.
File Formats COM 366 Web Design & Layout. Native file format –Format native to software program –.psd > PhotoShop default Preserves layers –Use “Save.
COMP Bitmapped and Vector Graphics Pages Using Qwizdom.
Lecture 4 - Introduction to Computer Graphics
Tutorial 6 Working with Bitmaps and Gradients, and Publishing Flash Files.
Getting the Basics Graphics for the Web McIntyre, Period 2 Kellogg, Period 5.
Presentation Design: Graphics. More About Color “Bit depth” of colors -- This is based on the smallest unit of information that a computer understands.
8 Using Web Graphics Section 8.1 Identify types of graphics Identify and compare graphic formats Describe compression schemes Section 8.2 Identify image.
Files, File Format Folders Paths, URL Absolute Addresses Relative Addresses © Ms. Masihi.
3D Game Programming All in One By Kenneth C. Finney.
Image Representation. Objectives  Bitmaps: resolution, colour depth and simple bitmap file calculations.  Vector graphics: drawing list – objects and.
Copyright © 2003 Pearson Education, Inc. Chapter 2, Slide 1 by Michael Kay The Web Wizard’s Guide to Flash.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 3 This presentation © 2004, MacAvon Media Productions Introduction to Computer Graphics.
Working with Images William Pegram April 1, 2013.
Photoshop Photoshop works with bitmapped, digitized images (that is, continuous-tone images that have been converted into a series of small squares, or.
ADOBE PHOTOSHOP VECTOR VS RASTER. Pixel A pixel is the fundamental unit of an image in Photoshop. It is a small square block of color. An image often.
I MPORTING AND M ODIFYING G RAPHICS. 1. Understand and import graphics 2. Break apart bitmaps and use bitmap fills 3. Trace bitmap graphics Objectives.
Web Graphics By Chris Harding. Contents  Software  Vector Graphics and Pixel Based  Transparent Images  Compression  GIF vs. JPEG  Animated GIF.
10 | Graphics COM 366 Web Design & Production. Native file format –Format native to software program –psd > PhotoShop default Preserves layers –Use “Save.
Web graphics Discussion Session August 16, 2000 Discussion Session August 16, 2000.
2D Graphics Theory & Principles. Single Point Smallest addressable area on screen or digital image.
File Formats and Vector Graphics. File Types Images and data are stored in files. Each software application uses different native file types and file.
Types of Graphics  Vector Individual scalable objects defined by mathematical equations  Bitmap Pixels (tiny, single-colored square) in a grid Most.
Chapter 2 File Format Objectives (1 of 2) Identify the difference between vector based graphics and bitmap-based graphics Clarify bitmap and vector graphic.
Digital Imaging 101 Ann Ware. Digital Image Categories BITMAP  A vector is created by using a series of mathematically defined lines and curves rather.
Unit 1: Task 1 By Abbie Llewellyn. Vector Graphic Software (Corel Draw) Computer graphics can be classified into two different categories: raster graphics.
Digital Imaging 101 Ann Ware
Color and Images. Color The natural colors we see and the colors we see on computer monitors are different. CMYK -natural RGB -monitor.
Adobe Dreamweaver CC: The Professional Portfolio Project 3: Photographer’s Web Site Working with static images Controlling backgrounds with CSS Working.
Web Graphics. Web graphics Bandwidth is king Graphics must load quickly Graphics must be optimized All other components except for text, gif and jpg are.
Graphics. … Can be immersive and capture imaginations. Largest Photographs In The World.
Image File Formats. What is an Image File Format? Image file formats are standard way of organizing and storing of image files. Image files are composed.
Exploring Web Design Chapter 1. Objectives Develop a new perspective of the WWW Learn what makes a website good or bad Discover how to apply objective.
Introduction to Images & Graphics JMA260. Objectives Images introduction Photoshop.
Graphics and Image Data Representations 1. Q1 How images are represented in a computer system? 2.
13 June – Session : Graphics Different types of Graphics for the web Features of image editing software Good practice for image editing.
Digital Basics Quiz Preparation. Basic Digital Image Concepts Aliasing & Anti‐aliasing Resolution Compression Raster & Vector Color mode & Image mode.
Online & Offline Publishing - Bitmaps & Vector Graphics Keywords: Paths, Points, Resize, Transparency, Resolution, Print Quality Web Image File Formats:
BITMAPPED IMAGES & VECTOR DRAWN GRAPHICS
Common Bitmap Image File Types
Digital Imaging 101 Ann Ware.
Vector (Shapes) vs. Raster (Pixels)
4 Importing Graphics Desktop Publishing: Chapter 4
Web Graphics By Chris Harding.
1.01 Investigate graphic types and file formats.
Raster Images CPSC 1030.
A computer display is made up of small squares, called pixels.
Introduction to Computer Graphics
MED 2001 Advanced Media Production
Terms 1 Terms 2 Terms 3 Terms 4 Terms 5 1pt 1 pt 1 pt 1pt 1 pt 2 pt
Vector (Shapes) vs. Raster (Pixels)
Web Programming– UFCFB Lecture 7
Presentation transcript:

Efficient Game Graphics From Flash MX 2004 Game Design Demystified

Choosing Vector Vs. Bitmap Both have places in Flash Graphics Vector are smaller and more scalable Bitmap allow for richer graphics and photographs Best solution is often to use both

Vector Graphics Vector Graphics are described as mathematical equations for points and curves. Image is not the actual image but a mathematical description of the image rendered on the screen at run-time. –Best for line work and graphical shapes.

Vector Graphics Created in tools like Freehand and Illustrator. Flash also create vector art. –File types are,AI,.EPS and.SWF Graphics are resolution independent. –No matter how close you zoom in or enlarge the image it is preserved

Advantages File size and flexibility Scale and positioning flexibility –Helpful if you are going to change the size of your graphic while playing

Disadvantages Because image is recreated on the fly, it may effect performance.

Bitmap Graphics A description of each pixel in a file with entries for red, green, blue and alpha. Created with PhotoShop, Fireworks and paint programs –File types are GIF, JPEG, and PNG

Advantages Performance –Does not require the complex rendering of some vector files. –It is already in the format the playback engine creates. Image complexity –Photos, 3D worlds and complex backgrounds are almost always in Bitmap.

Disadvantages Don’t work well if you have to zoom or rotate them. Files sizes can quickly get large

File Types for Flash Games For Bitmaps you should either use GIF, JPEG or PNG

GIF Indexed color Reduced to 256 colors maximum Allows for one transparent color Considered Lossless –If the image only has 256 or less colors

JPEG True 24-bit color Ideal for graphics from photos or gradients. Is a lossy format, changing the data in the file Bad for lines and text images

PNG 8 and 24 bit versions –Substitutes for GIF and JPEG 8-Bit is indexed like GIF, with more transparency options. 24-Bit is lossless with 8 bit transparency. –In Flash PNG images are compressed at publishing using the JPEG method.

Compression File size is critical for web delivered games Flash is very efficient at delivering small files It is up to you to make the right choices to maximize Flashes abilities

Lossless Compression Schemes Do not actually remove any data Treat graphics as rows of particular color. Colors are converted to an index and converted to only those index colors. –2 to 256 colors Compression goes by pixel rows and reduces the information

Lossy Compression Sacrifices Image quality for Image size –Removes information invisible to the eye –As compression ration increases Image quality decreases. Always compress your images only once. –Reducing a reduced image can have a dramatic effect on quality. –Always keep original images in their native form.

Changing Bitmap Properties Bitmap properties in the Library allows you to change settings for compression Global compression settings can be changed in the Publish settings When using Lossless Compression (GIF or PNG-8) the compression settings in Photoshop and fireworks are superior to those in Flash and should be modified there.

Optimizing your images Game image rendering is often the cause of problems with performance You need to be sensible with your design –Smaller graphics render faster –The more you move a frame the more processing –If you are trying to move at 30 frames per second, the images must render in less that 1/30 th of a second

Simplify Vectors Flash gives you tools to simplify the vectors that you cretae in vector graphics. –Optimize curves from the Modify Menu Works on Illustrator and EPS graphics as well as those created in Flash

Other considerations Alpha Channels –More alpha channels = more rendering Anti Aliasing –Adds processing time. In some cases (Small fonts) it may not help legibility Bitmap Smoothing –Flash process to improve scaled bitmap can use extra processor time Use ActionScript functions when possible to improve performance

Loading Graphics at Run-Time May increase speed if you are loading additional parts of the program while it is playing Allows you to change the game without having to recompile the SWF. Flash only loads JPEG and SWF files –May limit your choices