Overview
Starting with mantra 9, most command-line options are overrides for properties. This means you can set these properties on the scene camera, and then override them on the command line if necessary.
Saving an IFD or RIB file
IFD is the scene description format produced by Houdini and consumed by mantra to produce a rendered image or animation sequence. The IFD file contains a complete description of the scene and how to render it.
RIB is the equivalent of IFD for RenderMan and RenderMan-compatible renderers.
You can set up a render output node to save a file instead of rendering an image directly. This gives you the flexibility of rendering at another time, from another machine, or on a render farm. See network rendering.
| To... | Do this | ||||
|---|---|---|---|---|---|
| Save an IFD file from Houdini |
| ||||
| Render a scene description file from the command line | Use the following commands to render IFD or RIB.
| ||||
Save an IFD file from a .hip file on the command line | Use the
| ||||
Render a .hip file directly from the command line | Use the provided |
Note
On Windows, use Start > All Programs > Side Effects Software > Houdini x.x.x > Command Line Tools to open a command line shell with environment variables defined and Houdini programs in the path.
Mantra command line options
Control options
-H hostlist
| Specify a comma separated list of hosts to perform rendering. For example -H chili,cayenne. |
-n val
| Number of processes to render using network rendering (deprecated in favor of -j). |
-N maj.min(.ren)
| When network rendering, ensure that remote hosts will run at least this version of mantra. |
-j numthreads
| Specify the number of threads ( |
-f file
| Read the IFD from the file given instead of from stdin. |
-F
| Indicates that the first argument after all options specifies the name of the IFD file to render (instead of the output image). |
-o file
| Send verbose output to the file given. On Windows, you can use |
-p file
| Append verbose output to the file given. |
-P pyfilter
| Specifies a python filter program (see Python Filtering). |
-V string
| If the string contains
On Windows, if the output appears in a pop-up console window, use |
Rendering options
-r
| Set renderer:renderengine to |
-q
| Set render quality (deprecated in favor of -Q). |
-Q arg
| Set render quality. If the argument contains Example: |
-s factor
| Set the renderer:shadingfactor property. |
-L factor
| Set the renderer:rayshadingfactor property. |
-M memory
| Set the renderer:geocachesize property. |
-S splits
| Specify the maximum splits for a single primitive (default 10). |
-v variance
| Set the image:variance to the value specified. |
-A
| Set image:samples to (1,1). |
-B size
| Set the image:bucket property. |
-J jitter
| Set the image:jitter property. |
-c coving
| Set the object:coving property. |
Image options
-i
| Force interactive rendering (into MPlay). |
-I
| Set various imager options (using a comma separated list).
Example: |
-w width, -h height
| Specify width/height of image (deprecated in favor of -I). |
-b depth
| Specify default quantization for image planes. |
-z
| Render a depth image, use average depth value for each pixel. |
-Z
| Render a depth image, use closest depth value for each pixel. |
-u object[:attrib]
| Set the renderer:uvobject and optionally renderer:uvattribute properties. |