Flipbook
Purpose
FlipBook is an animation previewer capable of viewing multiple sequences of PIX, SGI, TIFF or TIFF16 files simultaneously or in sequence while maintaining a specified frame rate and offering a variety of advanced compression options.
Note: To use Flipbook as a standalone utility, see flipbook in the Utilities Guide. (available online only)
How to use
FlipBook Editor
- To display the FlipBook editor, select Animation
Flipbook. The Alias File Requestor is displayed.

- Click the Show List button to display a list of available files. From the File Lister, you can select a PIX, SGI, TIFF, or TIFF16 file. Select one of the files and click the Show button.
Alias automatically determines which files make up the animation from the file you select, and loads all files present on the disk into the FlipBook editor.
The FlipBook editor creates a Book and displays the animation as it is being loaded. Once loading is complete, the FlipBook editor window cycles through the animation.
Note: FlipBook is available both inside the Alias package, and as a standalone utility suitable for presentation use. Compressed FlipBook animations can be saved as single files for subsequent quick loading.
The FlipBook editor contains a set of icons and controls in the title bar that you use to control its behavior.

From left to right, the controls are:
- Close Box click to close the FlipBook editor window.
- Filename displays the name of the animation currently playing in the FlipBook editor.
- Current Frame displays the current frame in the FlipBook editor, and counts up or down as the animation proceeds.
- Shuttle Control the left facing arrow starts the animation counting down from the last frame.The black square in the middle pauses the animation. The right facing arrow starts the animation counting up from the first frame.
- Push Pin click to lock the window to the current animation. This prevents the master FlipBook Editor window from cycling through all selected animations, and instead stays within the current animation.
Note: This icon is only available on the master FlipBook editor window.
- Control click to display the FlipBook control window.
- Stow click to turn the FlipBook editor into an icon.
- Full Screen click to toggle the FlipBook editor window between its current size and full screen size.
Tips:
FlipBook Keyboard and Mouse controls
The FlipBook editor has a number of mouse and keyboard controls that can be used as an alternative to the menu bar controls:
Action taken Keyboard or mouse
Display next frame Left mouse click
Right arrow
l key
Display previous frame Right mouse click
Left arrow
h key
Play animation forward Drag mouse right
Shift Right arrow
L key
Play animation backwards Drag mouse left
Shift Left arrow
H key
Display previous animation Up arrow
k key
Display next animation Down arrow
j key
(while playing) Pause animation Any mouse click
Toggle b/w playing in the current space bar
direction and pausing the animation
Display FlipBook Control window M key
Close FlipBook Q key
FlipBook Control Window
The FlipBook control window lets you perform functions such as loading additional animations into the FlipBook editor, and altering playback and compression settings. This window can also be opened by clicking the control icon on the FlipBook editor's title bar.

The FlipBook control window is broken up into several sections. If you click the black arrow to the left of a heading, a new window is displayed containing options specific to the parameter heading. These are described in the following section.
Control Panel Parameters

The Control Panel provides shuttle controls and frame readout for any of the currently displayed FlipBook editor windows.
- Frame displays the number of the currently visible frame. If you click in the Frame field and type a number, it sets the current animation to the specified frame.
- Rate displays the current frame rate for the animation currently running.
- Timecode displays the current frame number, converted to timecode using the current frame rate, and calculated assuming that frame 0 occurs at 00:00:00:00.
By clicking in any of the Timecode fields and typing a number, you can set the current frame of the current animation to the specified frame.
- Shuttle to control the animation being displayed using standard shuttle controls.
- Playback slider to view the progress of an animation sequence from the first frame (at the left side of the slider) to the last frame (at the right side of the slider).
Click, or click and drag in the slider to alter the frame displayed in the active FlipBook.
Book List Parameters

The Book List options let you load, delete, unload, and reload animation sequences. You can switch FlipBook editor windows by clicking in the name of an animation in the Book List, and also change the animation sequence that the master FlipBook editor window is showing.
Book icons
These are on the left of the window and are used to open or close FlipBook editor windows. The master FlipBook editor window is the first icon in the Book List options, and is the window displayed when the FlipBook editor is first run.
Note: The master FlipBook editor window can display any of the currently loaded animations, and you can switch between animations displayed using the keyboard or mouse commands.
If more than one Book is selected (by clicking and dragging in the Book List), the master FlipBook editor window cycles through all selected animations. As the list items are selected, a number is displayed to the right of the icon. The display is in order of the numbers.
Additional Book Icons are displayed for each FlipBook that has been loaded. Clicking these icons opens up additional FlipBook editor windows specific to these animation sequences.
Tip: One or more FlipBook editor windows can be actively displaying animation sequences concurrently.
Book Management
Click and hold on the Book Management heading to display a menu that lets you load, delete, unload, or reload animation sequences into books, and also lets you save books out to FlipBook files.
- New Book to load a new book:
- Select New Book from the Book Management menu.
- You are prompted for a PIX, SGI, TIFF, or TIFF16 file. Using the File Requestor, select an image from the animation sequence you want to load.
The FlipBook control window now loads the additional animation sequence and the FlipBook determines the frame range used.
Tip: The active books are represented as highlighted items in the list of FlipBooks.
- Delete Active to delete the currently selected FlipBook(s) from memory. New books are active by default.
- Reload Active to reload the current animation from disk. This lets you change the compression options and frame ranges, then quickly reload the FlipBook from disk.
- Unload Active to unload the current FlipBook from memory. This lets you reload the unloaded flipbook at any time.
Note: The flipbooks are not removed from the list of flipbooks.
- Write Active to write out the active flipbook as a single FlipBook file containing the compressed versions of the source files.
FlipBook List
The FlipBook list consists of a list of FlipBooks that have been loaded in the FlipBook control window. For each item in the list, the following information is displayed:
- Book Icon to toggle a FlipBook editor window that displays this animation sequence alone.
- Selection number to determine the order of sequencing (if the book is active).
- File name displays the name of the FlipBook. Click on this field to select the FlipBook and make it active.
You can also drag up or down in this field to make multiple FlipBooks active. The master FlipBook editor window cycles between displaying all active flipbooks.
- Start to set the first frame to be used when displaying the animation.
- End to set the last frame to be used when displaying the animation.
- By to set the "by" value used when displaying the animation.
Options Parameters
The FlipBook Options let you change basic display options for the current FlipBook.

- Name to display the name of the current FlipBook animation.
- Frame Rate to set the number of frames to be displayed per second if Match is toggled on. The FlipBook editor window will wait, or skip frames as necessary, to maintain the specified frame rate.
This field is also used to compute the timecode display for the current animation.
- Match toggle On or Off to specify whether FlipBook should attempt to maintain the frame rate specified by the Frame Rate field. If this is not specified, the FlipBook editor displays each frame in sequence regardless of the frame rate specified.
- Oscillation toggle On or Off to specify whether the active FlipBook should loop when the end of the animation is reached, or whether it should oscillate between forward and reverse play. Note that this is only used if you are viewing a single animation.
- Dbl Buffed toggle On or Off to specify whether the active FlipBook should be displayed in double-buffered or single-buffered display mode. This field is only read when a Book is initially opened.
Note: On 12 bit machines, you will not have enough bit planes to display images properly. If using these machines, make sure Dbl Buffed is toggled Off.
Load Options Parameters
The Load Options let you specify properties used when loading or reloading FlipBooks from their corresponding animation sequences on disk.

- Path to display the current FlipBook animation file path.
- Range Min/Max to load the range of images.
- Extension Width to specify how much padding has been used in the numeric extensions of the files that make up the animation sequence.
For example, if one of the component files is called filename.023, the padding value should be set to 3, because all numeric extensions have at least 3 digits.
Compression Options
The Compression methods used by the FlipBook take advantage of both time and spatial coherency with a definable loss limit. The FlipBook compression options let you adjust the amount of compression used.
- Space Compress takes advantage of pixel coherency over space.
If pixel values remain the same over a length of space, the value is stored once and a "per pixel" count is kept. This is standard runlength encoding. However, to this is applied a weighted form of lossy compression. The value you enter in the field serves as a position on a ramped curve. While a image is decoding, as a pixel run gets longer, the amount of acceptable loss is reduced. This helps reduce streaking with values above 10. See the following example:
0 = no Space Compression
1 = standard runlength encoding ( no loss )
>1= weighted lossy compression.
- Time Compress takes advantage of pixel coherency over time.
If a pixel does not change from frame to frame, its value is only stored once and a "per pixel" counter is incremented. This method can provide great savings in most animations. The only exception is where there is a complex stage with a moving camera.
The disadvantage of this form of compression is that in some cases, sync rate MATCH may not work well. In this form of compression, all frames must be decoded even if we are skipping frames. This can result in a very jumpy animation. The values are used as follows:
0 = Time compression off.
1 = Time compression with no loss of information.
A value greater than 2 defines the value of acceptable loss on ether side of the pixel value. For example, if the pixel value is 100 and the Time compression value is 4, the range of the pixel could be anywhere between 96 and 104. Values greater than 8 could result in a washing effect over the animation.
- Sample Rate to specify a supersampling or pixel skipping rate when loading animation sequences into a flipbook.
For example, setting this field to 2 causes 512x512 images to be loaded at 256x256 resolution. This decreases the visual quality of the preview, but saves drastically on memory.
- Filter toggle On or Off to specify whether animation sequences loaded will be supersampled by the factor specified in the Sample Rate option, or whether the sampling will use a simple pixel-skipping method for reducing the image size.
Tip: Setting this toggle On forces the more time-consuming, but better looking supersampling to be performed as the animation frames are loaded.
Image Crop Parameters
The Image Crop options let you specify that only a region of each component file of an animation should be loaded, as opposed to the entire file. This is useful when concentrating on one portion of an image, and may enable you to load a longer sequence into memory.

- Min/Max X the horizontal range of pixels to be loaded from each file in the animation sequence.
- Min/Max Y the vertical range of pixels to be loaded from each file in the animation sequence.
Compression View Parameters
These toggles let you view the amount of compression you are achieving graphically with the Load Options specified for any FlipBook.

You can use this information to optimize the amount of memory each flipbook uses, while maintaining the best possible visual quality.
- Color toggle On or Off to display spacial runspans in blue with the start of a span displayed in red. The more red, the less spatial compression is being attained.
- Time toggle On or Off to display time spans in green with yellow starts. The more yellow, the less time compression is being attained.
Advanced Options Parameters

Background Sequencer Parameters
The sequencer lets you play back the pages of a background book in any order by specifying a series of sequences. Each sequence tells the FlipBook to play a certain interval of pages at a given speed, and repeat a given number of times.
There are four editable fields for each sequence:
- start the starting page number of the segment.
- end the ending page number of the segment.
- frames the number of frames over which the segment is to be played.
- cycles the number of cycles to repeat the segment.
Notes:
- Insert/Delete click the Insert button to add a sequence, or the Delete button to delete a sequence.
Sprite Animation Parameters
The Sprite Animation options are used to composite sprite books onto background books in real-time (during book playback), using SGI's alpha-blending abilities. Together with this comes a simple facility for interactively editing 2D keyframe animation.
The following diagram shows the Sprite Animation windows.

Sprite Path
The FlipBook is designed to associate keyframe animation information with the background book, because it makes sense for animation to be relative to a sequenced background, and because it lets you easily try different sprites on the same motion path. So each background book contains a list of spritepaths, to which you assign sprites (by typing in the name of the sprite next to the desired spritepath).
Just as in other editor lists, you can select items in the list, or create and delete them with the buttons in the Spritepath Lister under Sprite Animation.
Sprite Path Editor Parameters
Sprite Path Name
This field displays the name of the current sprite path.
Keyframe
Each spritepath consists of a list of keyframes, where a keyframe has eight components:
Using the Keyframe Lister

The keyframe lister in the Sprite Path Editor includes a single temporary Keyframe edit area above the actual list where you can make changes to the various editable fields before committing to your changes by clicking the Set button.
If there are any keyframes in the list, and if there is a loaded sprite's name assigned to the spritepath, you should see the sprite on the background book, and the temporary editable fields will change to reflect the sprite's position if you change frames in the book.
You can edit the temporary keyframe either by typing in the editable fields, or by clicking on the sprite in the book and dragging it to a new location. To pick the sprite, you must click on a pixel that is part of the mask (that is, has a non-zero alpha).
As soon as you click on the sprite and modify its position or other qualities, the sprite shows up as a negative mask on the background to reflect the fact that it is not part of the current animation (as determined by the currently set keyframes). To make your change permanent, either click the Set button or press Enter, and a new keyframe will be set.
You can also pick from the list of keyframes. This causes the book to jump to the appropriate frame, and the keyframe is copied into the temporary fields. To change the keyframe, edit the fields again or manipulate the sprite, and then click Change.
If you click Set to set a keyframe when another keyframe exists at the same frame number, FlipBook asks for your confirmation before replacing the old frame. Likewise, if you click Change to change a keyframe so that its frame number now matches that of another keyframe, a confirm box is displayed before deleting the old keyframe. You can click the Delete button to delete the keyframe you picked.
Using the Keyframe Buttons
The three flags correspond to the three checkboxes in each keyframe list entry.

If the Loop page is -1, it shows up as none in the keyframe list and the page number of the sprite is linearly interpolated (just like a sequence interval) until it reaches the page number of the next keyframe. Otherwise, the sprite cycles through the frames from the starting number to the loop page number until the next keyframe is reached ( like the sequencer, cycling backwards if the loop page number is less than the starting page number).
The -1 is never actually visible, but this means that you can set the loop to none by dragging all the way to the left over the Loop cell.
More on Using Sprites
Aside from loading its own book files, FlipBook has always been able to load a series of .pix images and convert them into a book file. Now when you want to load a sprite, you click the Load as Sprite check box in the load confirm window (the one that asks: Load foo as a series of images?).
The other new field in that window is the mask path. FlipBook assumes that the mask files have the same names as the corresponding pix files, but in the path you specify. If you don't specify a path, FlipBook looks for the ../mask sibling path from the location of your pix files (this is usually correct under the user_data tree).
Using the Mouse
Clicking and/or dragging on a displayed book can have a number of effects.
Sprite
If your click lands on a visible sprite :
Background
If your click misses all visible sprites:
Additional Information
Sprites cannot be compressed. Also, the master book only plays backgrounds, and does not play sprites. Your freshly loaded sprite can be saved, in which case it turns into a book file, retaining information about its options and window geometry like any other book.
In the editor under Sprite Options, there is an extra Sprite Offset attribute. These two editable fields let you specify the hot spot on the sprite that you want the rest of the coordinates in the animation to refer to. In addition, clicking and dragging the middle mouse button in an open Sprite window will drag the hot spot around the sprite.
aliasdocs@aw.sgi.com
Copyright © 1997, Alias|Wavefront, a Silicon Graphics Company. All rights
reserved.