Command Line Options

There are a number of command line options that override internal renderer variables which are set in the SDL file. These options allow you to change the behavior of the renderer without having to edit your SDL file.

To use the command line options, the renderer must be started from a UNIX shell window. The syntax of starting the renderer (or raytracer or powertracer) from a shell window is simple; First change directory into your project (ie. "cd user_data/demo"), then specify the executable and the SDL filename (for example, "renderer sdl/animation_scene_1"). The Alias renderers allow you to set many options.

The Alias Renderer, V8.0

Usage:

renderer|raytracer [-H] [-a#] [-b#] [-e#] [-f script] [-g#][-h#] [-m filename] [-p filename] [-d filename] [-C color_map_filename] [-c quantized_output_file] [-j] [-k] [-K#] [-o#] [-O][-q#][-P][- s#] [-S#] [-B#] [-E#] [-r#] [-t#] [-w#] [-W#] [-x#] [-y#] [-Y#] [-z#] [-Z#] [filename]
-a# Use the integer '#' as the aalevel
-t# Use the integer '#' as the aathreshold
-s# Use the float '#' as the starting frame number
-b# Use the float '#' as the by frame number
-e# Use the float '#' as the ending frame number
-S# Use the integer '#' as the start extension
-B# Use the integer '#' as the by extension
-E# Use the integer '#' as the size extension
-fSTRING invoke the program 'STRING' after each frame
-g Use the float `#' as the gamma correction value
-mSTRING Produce a matte file and Use 'STRING' as the filename
-pSTRING Use 'STRING' as the pix filename
-dSTRING Use 'STRING' as the depth file name
-C STRING Use the SGI imagelib image format file to quantize to after each frame
-c STRING Output the quantized image to the file STRING after each frame
-j Raytrace transparent objects without attenutation (Beere's law ignored)
-k Keep depth maps in memory after reading (read them once)*
-K# Turn depth maps on disk usage to `#". 0=off, non-zero =on**
-O Use byframe of 1.0 as applied to motion-blur
-o# Use byframe of # as applied to motion-blur
-P Preserve the non-glowed image
-q# Set the quiet flag to '#'; 0 or 1
-T# Use the integer `#' as the number of Y pixels in a tile.
-h# Use the integer '#' as the image height
-w# Use the integer '#' as the image width
-W# Use the integer '#' as the ylow for backgrounds
-x# Use the integer '#' as the xleft
-y# Use the integer '#' as the ylow
-Y# Use the integer '#' as the yhigh for backgrounds
-r# Use the float '#' as the aspect ratio
-G# Turn saved geometry on (non-zero '#') or off (0).
filename Use 'filename' as the SDL filename. If no filename is present standard input will be used
-z# Make camera depth output respect transparency, if transparency is greater or equal to `#' ***
-Z# Set fast_shading to '#'; 0 or 1
-H Print this Usage message

There is a new quantize option for the Alias Renderers. Quantizing is the function of reducing the number of colors used in an image to enable their display on limited color resolution monitors. Typically this means reducing the number of bits per pixel from 24 (8 bits for each of R, G, and B) down to 8 bits per pixel. The quantize process tries to reduce the color errors introduced by the color space reduction.

The quantize option is controled by using the -c and -C command line options in the renderers. The stand-alone 'aquant' creates color map files which are in SGI Imagelib image format which can then be fed to the renderers to quantize images as they are rendered.

By default the quantizing procedure is non-destructive. Alias does not delete or overwrite any image file in case the quantizing is not to the your liking. If you have the original image file, you can always quantize again.

*Note on -k option: if used, a depth map file will be read ONCE, or if depth map saving is not turned on, the map will be created ONCE and used for all subsequent frames.

**Note on -K option: if used, a depth map file named the same as the light will be created if it doesn't exist, and used if it does exist.

***Note on -z option: this allows transparency mapped objects to affect the camera depth output files. If the flag is set to 1, anything that is at least slightly transparent will not show up in the depth file. If the flag is set to 50, anything that is more than 50% transparent will not show up in the depth file. If it is set to 99, only things that are totally transparent will not show up in the camera depth file.

This information is at your disposal at all times by supplying the renderer with the \Q-H' flag (that is, "renderer -H").

The Alias PowerTracer

The Alias PowerTracer for SGI(tm) machines has a few extra options for controlling the manner in which it uses the multiple CPUs:

Usage:

]

powertracer/powercaster [-H] [-a#] [-b#] [-e#] [-f script] [-g#][-h#] [-m filename] [-p filename] [-d filename] [-C color_map_filename] [-c quantized_output_file] [-q#] [-s#] [-S#] [-B#] [-E#] [-r#] [-W] [-Y] [-k] [-K#] [-o#] [-O] [-P][-t#] [-w#] [-x#] [-y#] [-n#] [-I] [-T#] [-U] [-z #] [-Z#] [filename
-a# Use the integer '#' as the aalevel
-t# Use the integer '#' as the aathreshold
-s# Use the float '#' as the starting frame number
-b# Use the float '#' as the by frame number
-e# Use the float '#' as the ending frame number
-S# Use the integer '#' as the start extension
-B# Use the integer '#' as the by extension
-E# Use the integer '#' as the size extension
-fSTRING invoke the program 'STRING' after each frame
-g Use the float `#' as the gamma correction value
-mSTRING Produce a matte file and Use 'STRING' as the filename
-pSTRING Use 'STRING' as the pix filename
-dSTRING Use 'STRING' as the depth file name
-O Use byframe of 1.0 as applied to motion-blur
-o# Use byframe of # as applied to motion-blur
-P Preserve the non-glowed image
-C STRING Use the SGI imagelib image format file to quantize to after each frame
-c STRING Output the quantized image to the file STRING after each frame
-q# Set the quiet flag to '#'; 0 or 1
-h# Use the integer '#' as the image height
-w# Use the integer '#' as the image width
-W# Use the integer '#' as the ylow for backgrounds
-x# Use the integer '#' as the xleft
-y# Use the integer '#' as the ylow
-Y# Use the integer '#' as the yhigh for backgrounds
-r# Use the float '#' as the aspect ratio
-G# Turn saved geometry on (non-zero '#') or off (0).
filename Use 'filename' as the SDL filename. If no filename is present standard input will be used
-k Keep depth maps in memory after reading (read them once)*
-K Turn depth maps on disk usage to `#". 0: off, non-zero = on.**
-Z# Set fast_shading to '#'; 0 or 1
-z # Make camera depth output respect transparency, if transparency is greater or equal to `#' ***
-n# Use the integer '#' as the number of processors to PowerTrace on.
-I Print out statistics at the end of the PowerTrace.
-T# Use the integer '#' as the number of Y pixels in a tile.
-U Leave output pix file uncompressed (not Run Length Encoded)
-H Print this Usage message

For example, if you want to render frames 4 through 8 of an animation with a by frame of 2 and you want those frames to be numbered 10,11 and 12, type in:

renderer -s 4 -e 8 -b 2 -S 10 -B 1 sdl/animation_scene_1 This produces the following pix files:

pix/animation_scene1.10 (which is frame 4) pix/animation_scene1.11 (which is frame 6) pix/animation_scene1.12 (which is frame 8) Another useful feature is renaming the output file for when you want to test a few frames of your animation. Say you wanted to see frames 1 through 5, but did not want to overwrite existing pix files, without editing the SDL file, you can specify this on the command line:

renderer -e 5 -p pix/test_anim -m mask/test_anim sdl/animation_scene_1 This will create the following pix and mask files:

pix/test_anim.1 pix/test_anim.2 pix/test_anim.3 pix/test_anim.4 pix/test_anim.5 mask/test_anim.1 mask/test_anim.2 mask/test_anim.3 mask/test_anim.4 mask/test_anim.5 There is a new quantize option for the Alias Renderers. Quantizing is the function of reducing the number of colors used in an image to enable their display on limited color resolution monitors. Typically this means reducing the number of bits per pixel from 24 (8 bits for each of R, G, and B) down to 8 bits per pixel. The quantize process tries to reduce the color errors introduced by the color space reduction.

The quantize option is controled by using the -c and -C command line options in the renderers. The stand-alone 'aquant' creates color map files which are in SGI Imagelib image format which can then be fed to the renderers to quantize images as they are rendered.

By default the quantizing procedure is non-destructive. Alias does not delete or overwrite any image file in case the quantizing is not to the your liking. If you have the original image file, you can always quantize again.

*Note on -k option: if used, a depth map file will be read ONCE, or if depth map saving is not turned on, the map will be created ONCE and used for all subsequent frames.

**Note on -K option: if used, a depth map file named the same as the light will be created if it doesn't exist, and used if it does exist.

***Note on -z option: this allows transparency mapped objects to affect the camera depth output files. If the flag is set to 1, anything that is at least slightly transparent will not show up in the depth file. If the flag is set to 50, anything that is more than 50% transparent will not show up in the depth file. If it is set to 99, only things that are totally transparent will not show up in the camera depth file.





aliasdocs@aw.sgi.com

Copyright © 1997, Alias|Wavefront, a Silicon Graphics Company. All rights reserved.