Standalones

soft -R


Runs the standalone SOFTIMAGE 3D renderer.

This allows you to render an image without loading all of SOFTIMAGE 3D.

Usage

soft [<resources path>] -R <scene>
[-d <input database>] [-L]
[-D <output database>]
[-S] [-j]
[-G <5 digits>]
[-r <x> <y>]
[-s <first> <last> <step>]
[-v] [-l <setup values>]
[-f <report frequency>]
[-c] 
[-o] <path> [-n] <filename>
[-z] 
[-b <distance from left edge> 
  <distance from right edge> 
  <distance from bottom edge> 
  <distance from top edge>]
[-t]
<resource path> is the path to the resource directory (softimage_installdir/3D/rsrc).

<scene> is the name of the scene to render.

Options

-d
Specifies the name of the database from where the scene must be read. If no name is given, the default database is used.

-D
Specifies the name of the database where the rendered images are stored. If no name is given, the default database is used.

-L
Uses the latest version of the given scene.

-S
Allows you to enter parameter values for the renderer interactively. If you use this option, you can also use IRIX commands to redirect the standard input to read these values from a file.

-j
Jumps over images already rendered (or being rendered) in the directory. This option is useful when using multiple processors to render a scene.

-G
Sets surface attributes: 2D Texture, 3D Texture, Reflection, Refraction, and Shadow. For each digit, 0 means that the corresponding attribute is off, and 1 means that it is on. For example, 11111 turns on all attributes.

-r
Sets the horizontal and vertical image resolution.

-s
Renders the specified frames of a sequence, instead of the sequence defined in the scene's setup (.sts) file.

-v
When using the -l option, prints out setup questions with values taken from the command line. This option is useful for seeing whether values correspond to the proper parameters.

-l
Similar to the -S option, but parameter values are taken from the command line instead of the standard input. Values must be entered in the same order as required by the -S option:
ParameterDefault
Output Image 
Starting Frame1
Ending Frame100
Step Frame1
Picture Width500
Picture Format:

0) 35mm 1.37/1 (1.37000)

1) 35mm 1.66/1 (1.66670)

2) 35mm 1.85/1 (1.85000)

3) 70mm Panavision (2.19000)

4) 70mm IMAX (1.36400)

5) 70mm OMNIMAX (1.36400)

6) NTSC (1.33330)

7) PAL (1.33330)

8) HDTV (1.77778)

9) Slide 35mm (1.50000)

10) 6cm X 6cm (1.00000)

11) 6cm X 9cm (1.50000)

12) 4 X 5 (1.25000)

13) Custom aspect

14) Custom size

13
Aspect1.18
Pixel Ratio1
Picture Height424
Filtering:

0) None

1) Bartlett Window

2) Adaptive

2
Max Level2
Threshold0.05
Sub-Region RenderingNo
Field RenderingNo
Back CullingYes
Ray Tracing Depth1
Triangles by Leaf10
Max Tree Depth30
Pre-frame Script 
Post-frame Script 
Global Ambient0.3 0.3 0.3
Motion BlurNo
Time StatisticsNo
Memory StatisticsNo
Tree StatisticsNo
On Line InformationNo

-f
Sets the frequency at which the renderer displays the current scanline number. The default is every tenth scanline.

-c
Completes rendering of unfinished frames.

-o
Specifies the output path for rendered images.

-n
Specifies the output file name for rendered images.

-z
Renders the z channel.

-b
Renders a subregion. Values range from 0 to 1 and are a percentage of the image resolution.

-t
Moves the camera to the origin and preserves the relative positions of the remaining elements to the camera.

Examples

The following example shows a rendering of the scene RENDER-test.1-0.dsc in the local database. The -j option allows more than one computer to render the scene without having two computers render the same frame . The -s option specifies which frames in the sequence to render, bypassing the original setup.

soft -R RENDER-test.1-0 -d local -j -s 10 352 1
The following example renders the latest version of the Render-Plan3 scene, which is in the final database. The rendered frames will be recorded in /EX8a/RENDER/Plan3 and will be named back3. The rendering can be run on more than one computer because of the -j option. The ampersand sends the process to the background so that you can use the current shell to work on other tasks.

soft -R RENDER-Plan3 -d final -L -j 
-o /EX8a/RENDER/Plan3 -n back3 &

Processing in the Background

There are two standard ways to send an IRIX process to the background. The first way is to pause the process by typing Ctrl-Z, then push the paused task to the background by entering the bg command. For example:

soft -R final_logo_job -d tutorials -L -s 1 450 1 
^z
bg
Note: Use the Ctrl-Z command to pause a rendering job. You can then can do something else, such as perform IRIX file management, without the huge overhead of a heavy rendering job using up all of the CPU cycles. To return the job to the foreground, enter the fg command.

The second way to send a process to the background is to add an ampersand (&) to the end of the command. For example:

soft -R final_logo_job -d tutorials -L -s 1 450 1&
These two techniques push the process into the background, and allow you to use the current shell for other things. The process continues to run until you close the window where you started the process.

To continue a process after closing a window, or even after logging out, use the nohup command. To do this, create an alias such as:

alias doit nohup soft -R
To run your alias, use the following syntax:

doit filename >& logfile &
For example:

doit final_logo_job -d tutorials -L -s 450 1 >& log &
filename represents a scene and logfile represents the text file to which messages are redirected. It is important to redirect messages to a file because messages are normally sent to the local window. However, the process stops if you close the local window or log out.

Subregion Rendering

To render subregions, use the following format:

soft-R <scenename> -n output\
 -b <distance from left edge> 
  <distance from right edge> 
  <distance from bottom edge> 
  <distance from top edge>
The subregion values should be in the range [0, 1] and are a percentage of image resolution. They must overlap by 1 percent because of the antialiasing of edges. To do this, use Adaptive supersampling (see the SOFTIMAGE 3D User's Guide: Rendering). Also, note that the values saved in the SETUP_SOFT.sts file work differently.

The following example of renders four quadrants (whatever the resolution may be):

soft -R test.2-0 -n a -b 0.00 0.51 0.49 1.00
soft -R test.2-0 -n b -b 0.49 1.00 0.49 1.00
soft -R test.2-0 -n c -b 0.00 0.51 0.00 0.51
soft -R test.2-0 -n d -b 0.49 1.00 0.00 0.51
The following example renders nine quadrants:

soft -R test -L -n a -b 0.00 0.34 0.65 1.00
soft -R test -L -n b -b 0.32 0.67 0.65 1.00
soft -R test -L -n c -b 0.65 1.00 0.65 1.00
soft -R test -L -n d -b 0.00 0.34 0.32 0.67
soft -R test -L -n e -b 0.32 0.67 0.32 0.67
soft -R test -L -n f -b 0.65 1.00 0.32 0.67
soft -R test -L -n g -b 0.00 0.34 0.00 0.34
soft -R test -L -n h -b 0.32 0.67 0.00 0.34
soft -R test -L -n i -b 0.65 1.00 0.00 0.34
Later, you can composite the rendered images by defining the full resulting resolution. The composite standalone uses the information in the "comments" area of the picture file. A sample composite script exists for nine quadrants resulting in a 1270 x 714 image. Execute this in the directory where the picture files reside.

composite -S 1270 714 final -d -v -s 1 1 1 a b c d e f g h i

Standalones Reference - 15 APR 1996

Generated with Harlequin WebMaker