Standalones

flipbook


Displays a sequence at the rate specified on the command line. If the program cannot display the frames at that rate, it skips frames. If the image is bigger than the screen, flipbook automatically reduces the image.

Once the first frame is displayed, click the right mouse button to begin flipping. The sequence loops when it reaches the last frame.

To flip backward, click the left mouse button. To pause, click the middle mouse button. To flip forward again, click the right mouse button.

To adjust the frame rate interactively, hold the middle mouse button down and drag the mouse. Drag the mouse to the right to flip forwards, and to the left to flip backwards. The display rate will correspond to the speed at which you drag the mouse.

To set the zoom factor interactively, click the right mouse button to pause, then use keys 1 to 9.

To exit, click two or more mouse buttons simultaneously.

Note: The flipbook standalone now includes all the features of the skim standalone, which is no longer shipped with SOFTIMAGE 3D.

Usage

flipbook <sequence> <first>
[ <last> [ <step> [<rate> ]]]
[-R <factor>] [-m] [-F|-E|-O] [-i] [v]
<sequence> is the name of the sequence.

<first> is the number of the first frame.

<last> is the number of the last frame.

<step> is the frame number increment (default is 1).

<rate> is the number of frames to be displayed per second (default is 30 fps).

Options

-R
Reduces image size by an integer factor. The reduction in memory requirements is the square of this integer factor. For example, reducing the image size by a factor of two reduces memory requirements by a factor of four.

Use the -R option with the -m option to load more frames into main memory.

-m
Loads all frames into main memory before displaying the sequence. By default, frames are loaded from disk only when needed.

-F
Specifies full frame images. This is the default.

-E
Specifies field images with even field dominance.

-O
Specifies field images with odd field dominance.

-i
Gets information about the sequence without display.

-v
Turns on the verbose mode.

Mouse functions

Left button: Flip backward

Right button: Flip forward

Middle button: Stop flipping or loading frames. Drag right and left to flip backwards and forwards.

Keyboard functions

f, right arrow: Go forward one frame.

b, left arrow: Go backward one frame.

u, up arrow: Increase the frame rate.

d, down arrow: Decrease the frame rate.

l: Toggle looping on and off.

i: Get information about the sequence.

1 - 9: Set zoom factor.

Esc: Exit program.

h: Display a usage message.

Note: When using the -m option, the computer starts swapping if the free memory is insufficient to load all frames. To load more frames, use the -R option to reduce image size. You can display one static picture by typing:

 flipbook <picture_name>

Memory Considerations

The space taken by the images should not exceed the amount of free main memory. If it does, the computer starts swapping memory to disk and the display slows down considerably. Use the following formula to calculate the number of bytes needed to load the images:

 4 x (height of frame) x (width of frame) x (number of frames)

Building a Better Flipbook

This script provides a more automated way of using the flipbook standalone.

Enter the following lines in a new file named myflip, for example. Copy the file to softimage_installdir/3D/bin (or wherever your executable files are located). Make sure that myflip is executable.

Next time, instead of using flipbook, use myflip.

#!/bin/csh -f
# Automatically finds start, end and increment
# of existing .pic files.

if ($#argv == 0 ) then
        echo "Usage: $0 <picfile>"
        exit
endif

set scene = $1:r;         set scene = $scene:r
set files = $scene.*.pic; set file1 = ${files[1]:r}
@ min = $file1:e;        @ max = $min;     
                              @ second_max = $max
foreach file ($files)
        set file = $file:r
        @ frame = $file:e
        if ( $frame > $max) then
                @ second_max = $max
                @ max = $frame
        else if ($frame > $second_max) then
                @ second_max = $frame
        endif
end
@ step = $max - $second_max

set echo
flipbook $scene $min $max $step 30
#end of script

Standalones Reference - 15 APR 1996

Generated with Harlequin WebMaker