Image Sequences or Vector Art in the Development of Flash* Games and Virtual Worlds? By Tom Costantini

Similar documents
IMAGE SIZING AND RESOLUTION. MyGraphicsLab: Adobe Photoshop CS6 ACA Certification Preparation for Visual Communication

Understanding Image Formats And When to Use Them

Specific structure or arrangement of data code stored as a computer file.

MOTION GRAPHICS BITE 3623

A picture is worth a thousand words

Developing Multimedia Assets using Fireworks and Flash

Indexed Color. A browser may support only a certain number of specific colors, creating a palette from which to choose

Vector VS Pixels Introduction to Adobe Photoshop

Topics. 1. Raster vs vector graphics. 2. File formats. 3. Purpose of use. 4. Decreasing file size

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

Using Adobe Photoshop

How to Avoid Landmines: Managing your Motion Graphics Projects

LECTURE 03 BITMAP IMAGE FORMATS

I can create an outline animation effect for an image (character) using advance masking effects.

Working with Photos. Lesson 7 / Draft 20 Sept 2003

6. Graphics MULTIMEDIA & GRAPHICS 10/12/2016 CHAPTER. Graphics covers wide range of pictorial representations. Uses for computer graphics include:

*Which code? Images, Sound, Video. Computer Graphics Vocabulary

INTRODUCTION TO COMPUTER GRAPHICS

Multimedia. Graphics and Image Data Representations (Part 2)

Section 1. Adobe Photoshop Elements 15

Bitmap Image Formats

Graphics for Web. Desain Web Sistem Informasi PTIIK UB

Photoshop Elements Week 1 - Photoshop Elements Work Environment

Adobe Fireworks CS4 Kalamazoo Valley Community College February 25, 2010

Factors to Consider When Choosing a File Type

Fundamentals of Multimedia

Digital Imaging and Image Editing

BEST PRACTICES FOR SCANNING DOCUMENTS. By Frank Harrell

Glossary Unit 1: Hardware/Software & Storage Media

Photoshop 01. Introduction to Computer Graphics UIC / AA/ AD / AD 205 / F05/ Sauter.../documents/photoshop_01.pdf

U-MARQ Universal Engraving. Bitmap Function. Chapter 12 Bitmaps. Bitmap Menu. Insert Bitmap

15110 Principles of Computing, Carnegie Mellon University

Adobe Illustrator CS6

TEST INFORMATION: 40 questions 50 minutes 70% minimum required to pass. Score is based on a 1000 pt system so passing will be a 700.

Image Optimization for Print and Web

Photoshop Certification

Introduction to: Microsoft Photo Story 3. for Windows. Brevard County, Florida

Chapter 3 Graphics and Image Data Representations

Adobe Photoshop The program: The Menus: Computer Graphics I- Final Review

B.Digital graphics. Color Models. Image Data. RGB (the additive color model) CYMK (the subtractive color model)

Color, graphics and hardware Monitors and Display

Learning Outcomes In this lesson, you will learn about the file formats in Adobe Photoshop. By familiarizing

SMART 3 IN 1 HOLLYWOOD PHOTOS: SETTING UP YOUR BOOTH FOR WEDDING/EVENT MODE

CS 262 Lecture 01: Digital Images and Video. John Magee Some material copyright Jones and Bartlett

Using Adobe Photoshop

1 Li & Drew c Prentice Hall Li & Drew c Prentice Hall 2003

CSC 170 Introduction to Computers and Their Applications. Lecture #3 Digital Graphics and Video Basics. Bitmap Basics

Raster (Bitmap) Graphic File Formats & Standards

CHAPTER 3 I M A G E S

1. Using Images on Web Pages 2. Image Formats 3. Bitmap Image Formats

Digital Imaging - Photoshop

Toon Boom Harmony 12.1 Reference Guide 3. Chapter 1: Dialog Boxes 7. Add Column Dialog Box 7. Add Drawing Layer Dialog Box 9. Add Frames Dialog Box 10

HTTP transaction with Graphics HTML file + two graphics files

1. Pixel-based artwork vs. Vector-based artwork

15110 Principles of Computing, Carnegie Mellon University

ADOBE CERTIFIED ASSOCIATE PHOTOSHOP CS5 Study Guide Sample Exam Items

PAINT Pa and DRAW Dr aw

2991c01.qxd 9/19/01 9:55 PM Page xxxiii. PARTi An Introduction to Photoshop 6 COPYRIGHTED MATERIAL

GETTING STARTED. 0 P a g e B a s i c s o f A d o b e P h o t o s h o p A g a P r i v a t e I n s t i t u t e f o r c o m p u t e r s c i e n c e

A raster image uses a grid of individual pixels where each pixel can be a different color or shade. Raster images are composed of pixels.

RETRO 3D MOVIE EFFECT

raw format format for capturing maximum continuous-tone color information. It preserves all information when photograph was taken.

RAVASMARTSOLUTIONS - TECH TIPS

CONCEPTS EXPLAINED CONCEPTS (IN ORDER)

ADVANCE DESIGN TEMPLATE ATTACK SOFTSHELL VEST

Welcome to Photoshop CS

OSA Sponsorship Order Form

4 Use of Multimedia. 4.1 Digital Graphics

MITOCW watch?v=ir6fuycni5a

Game Design 2. Table of Contents

Lecture - 3. by Shahid Farid

Module 4 Build a Game

UNIVERSITY OF CALICUT INTRODUCTION TO MULTIMEDIA QUESTION BANK

Elements of Design. Basic Concepts

For all question related to Photoshop that we cannot address in class, start by looking at the excellent Photoshop help: Help > Photoshop Help.

Contents. Introduction

LECTURE 02 IMAGE AND GRAPHICS

Learning Macromedia Fireworks Essentials and Digital Image Editing

CD: (compact disc) A 4 3/4" disc used to store audio or visual images in digital form. This format is usually associated with audio information.

PB Works e-portfolio Optimizing Photographs using Paintshop Pro 9

Positive & Negative Space = the area around or between a design. Asymmetrical = balanced but one part is small and one part is large

Digital Imaging & Photoshop

Battle the Bugs in Squish Squash the Hot New Game for the iphone and ipod Touch!

Computer Graphics and Image Editing Software

Unit 4.4 Representing Images

Adobe Photoshop Notes. Adobe Photoshop CS3

Bitmap Vs Vector Graphics Web-safe Colours Image compression Web graphics formats Anti-aliasing Dithering & Banding Image issues for the Web

File Formats and the Properties of Digital Images and Graphics Instructions and answers for teachers

Next Back Save Project Save Project Save your Story

Picsel epage. Bitmap Image file format support

The Joy of SVGs CUT ABOVE. pre training series. svg design Course. Jennifer Maker. CUT ABOVE SVG Design Course by Jennifer Maker

Computers & Philately Overview

User Guide. Version 1.4. Copyright Favor Software. Revised:

LOGO USAGE JANUARY 2010 VERSION 2.0 BRAND IDENTITY GUIDELINES 6

3.1 Graphics/Image age Data Types. 3.2 Popular File Formats

Digital Images. Digital Images. Digital Images fall into two main categories

Digital Portable Overhead Document Camera LV-1010

Manga Studio 5 The Standard in Manga & Comic Illustration!

By Washan Najat Nawi

How to generate different file formats

Transcription:

Image Sequences or Vector Art in the Development of Flash* Games and Virtual Worlds? By Tom Costantini For years, Adobe ActionScript* developers have been using Adobe Flash* as their main development tool for creating extremely entertaining, downloadable, and browser-based games. With hot new platforms like netbooks being released, developing games for these platforms using Flash makes a lot of sense. These games range from simple single-player games to more competitive multi-player games and very sophisticated massive multiplayer online role-playing games (MMORPGs) like Sifaka World*. These MMORPGs, or virtual worlds, allow a multitude of players to play the game simultaneously and interact with each other in real time. With so many players on screen at any given time, it s important to optimize your graphics as much as possible to allow for the most favorable user experience. It s the developer s job to decide how to best optimize these graphics, which for the most part consist of either raster or vector images. This article covers the numerous reasons why artists and developers would choose to use an image or image sequence as opposed to vector art as it relates to Flash games and virtual world development. It discusses the process of creating vector art in Flash and converting that artwork into image sequences when needed. Also, the article touches upon how to determine when the use of an image sequence would be more beneficial to the user experience than the actual vector artwork, and discusses some of the typical problems developers may encounter along with techniques to get around those problems. Note: This article assumes that you have a basic knowledge of as well as some experience using Flash. Raster Images and Vector Images When developing a 3D virtual world in Flash, you re most likely going to be importing raster image sequences into the Flash timeline in order to construct it. But if your world is a 2D environment, you have the option to build your assets directly in Flash as vector art. For this reason, it s important to understand the differences between raster and vector graphics. A raster image uses a series of pixels that form points of color to create an image on your computer s monitor. It s not possible to shrink or enlarge raster images like JPEGs, GIFs, and bitmaps without loss of image quality. As you can see in Figure 1, the raster graphic on the right appears blurry when enlarged.

2 Image Sequences or Vector Art Figure 1. The difference when enlarging vector and raster graphics (Images copyright Two Animators! LLP and Sifaka Productions, LLC) Unlike a raster image, vector images store all the mathematical information necessary to construct the image within it as a series of vectors, or points. There are several advantages to using vector artwork, the principal reason being that it s easily scalable to any size without any loss of image quality. Also, vector art typically has much smaller file sizes compared to raster images, which can allow for greater optimization and overall user experience during game play. Creating Vector Art in Flash* Flash is a vector-based program, which means that all the graphics you create using Flash s tools are automatically vector images. Flash has many tools you can use to create your artwork,

Image Sequences or Vector Art 3 including the line tool, the brush tool, and the paint bucket, just to name a few. It also includes a useful tool called the subselection tool. When you click a vector image, the subselection tool gives you an idea of how many points the drawing has. In Figure 2, I ve selected the outline of the character s head, and the tool highlights the points. The fewer points an image has, the more optimized it will be. However, it is important to note that you will begin to lose the form of your image if you optimize the lines too much. It s a delicate balancing act between how small you want your file size to be versus how intricate you need the artwork to be, making optimization of some files an art form unto itself. Figure 2. Sifaka World character and the subselection tool The procedure to optimize a vector graphic in Flash is simple. The first step is to highlight the image you want to optimize with the lasso tool. Next, click Modify > Shape, and then click

4 Image Sequences or Vector Art Optimize from the list to open the Optimize Curves window. Here, you can choose the Strength, or how much you want to optimize the image, which is displayed in a value from 0 100%. Note: The Flash shortcut to launch the Optimize Curves window on a PC is Ctrl+Alt+C. On a Mac*, the shortcut is Cmd+Opt+Shift+C. Take a look at Figure 3: I have optimized the character s head at 100% to demonstrate what Flash may do to a graphic during the optimization process. Typically, I wouldn t optimize a character this much, because you begin to lose image quality. Instead, I would play with the Optimize Curves settings until I found a level of optimization I could live with. Alternatively, you can choose to optimize only one section at a time instead of the entire graphic in order to maintain a higherquality image. The difference in file size between the two heads below is approximately 3 KB, so you can imagine how many kilobytes you can save in a Flash game or virtual world by optimizing all your graphics. Figure 3. Sifaka World character after being optimized

Image Sequences or Vector Art 5 For example, Sifaka World currently has more than seven main regions, each of which has several sub-regions, or world areas, to explore. The game also currently has nine different avatars, each with multiple clothing, accessory, and prop assets, which players can choose from in order to customize their characters. Because Sifaka World is regularly being updated with new graphics, audio files, and world regions, it s incredibly important to keep an eye on file sizes. By optimizing each and every item that goes into the game, my development team ends up saving a lot of kilobytes and guaranteeing users a better experience during game play! Vector graphics sometimes have a reputation for appearing computer-generated or clean-edged, mainly because they are made up of geometric shapes. However, in the hands of a talented artist, wonderful artwork can be created using this format. The example in Figure 4 is a vector art background built in Flash for the Sifaka World game. Figure 4. Sifaka World vector art background (Asian region)

6 Image Sequences or Vector Art When to Use an Image Sequence Instead of Vector Art For the most part, vector art is smaller in file size than raster images; however, there are some occasions when a raster image can actually be less processor intensive than vector art. In those instances, using a raster image is more beneficial. An example of this is the main Treetop area of Sifaka World, which is an 800 1600 scrolling background (see Figure 5). In this area, users see only the treetop portion of the background in their browser window; however, once they enter the elevator, the entire background pans downward until their avatar exits the elevator at the Forest Floor. It s an impressive effect and adds a lot of fun to the game, but it also takes some involved planning in order to pull it off flawlessly. Figure 5. Sifaka World s main Treetop Entrance area (full scrollable image)

Image Sequences or Vector Art 7 Let s take a closer look at just the top portion of the Treetop background (see Figure 6). I have highlighted some of the vector points used to create the background image with the subselection tool. Sifaka World is an extremely stylized environment made up of many vector points. When a computer graphics card has to process all of the points, the result is a very slow and choppy scrolling movement. In this instance, it is more beneficial to turn the vector artwork into a raster image for the scrolling effect. Because the size of the background doesn t change only the position is moved further downward it is less processor-intensive to use a raster image. So, by creating a raster image out of the main portion of the background and only using vector assets for the interactive portions, such as rollovers and the animation of the elevator doors, my development team created a smoother animated effect that users computers can play back much more easily. Figure 6. Sifaka World s main Treetop Entrance area (top portion only)

8 Image Sequences or Vector Art Converting Your Flash* Vector Art into Images If you decide to convert your Flash vector artwork into images, you will need to determine which type of image you want to create. I like to export images as Portable Network Graphics (PNG) images, because they use lossless data compression a fancy way of saying they keep your graphics looking high quality. PNGs also allow for the use of alpha transparencies, which are useful when you need an image that has a see-through background. However, it is equally important to note that Flash has many export options, including JPEG, GIF, BMP, and even Adobe Illustrator*, which is also an excellent vector graphics program. When converting Flash vector art into raster images, the first step is to line up the vector art on the Flash timeline. If you re only exporting one image, simply click File > Export > Export Image to open the Export Image window. Here, choose the type of file you want to export as well as where you want to save the image. In the example in Figure 7, I ve selected to export a PNG image and to save the image to the desktop. Once you have selected your options and clicked Save, you will be prompted to select the resolution you want the image to be, how many colors, whether you want to add an alpha channel, and so on. Click OK to export the image.

Image Sequences or Vector Art 9 Figure 7. Options in the Export PNG window To export a sequence of images, such as the walk cycle shown in Figure 8, line up each image in the sequence on the Flash stage one after the other. Then, click File > Export > Export Movie to open the Export Movie window. Choose the type of files you want to export and where you want to save the image. In this example, I ve selected to export a PNG sequence and to save the images to a folder on the desktop. (I highly recommend exporting long image sequences into a folder; otherwise, you end up with tons of images all over you desktop.) Once you ve selected your options and clicked Save, the rest of the export procedure is the same as for a single image.

10 Image Sequences or Vector Art Figure 8. Export the movie to render an image sequence Summary Adobe Flash is a great program for creating intricate vector art images and animations for games that are both light in file size and easily scalable. Flash has also made it easy to export your vector files as both raster images and Adobe Illustrator files. It s extremely important for developers to have the ability to determine when the use of an image sequence would be more beneficial than using vector graphics. Although there are some limitations to what can be accomplished with vector drawings, in the hands of talented artists, truly amazing artwork can be created.

Image Sequences or Vector Art 11 About the author As the co-founder and creative director of Two Animators! LLP (2A!), Tom Costantini has more than nine years of experience working with highly recognized brands. 2A! is a full-service multimedia studio with clients such as Mattel, Colgate-Palmolive Company, USDA, Atmosphere BBDO, VH1 Music Channel, Meat Loaf, Mezco Toyz, Sifaka Productions, and the rock group YES. Tom has also written and co-directed dozens of animated shorts, including a five-minute educational video for Colgate that teaches kids how to properly brush their teeth and a seven-minute music video for Meat Loaf's Bat out of Hell III tour. His creative work has been featured on WPSD Channel 6 News and in Millimeter Magazine.