9

210 Chapter 17: Rendering
Example: R endering to a JPG file at 800x 600
resolution:
Perhaps the last time you rendered your scene,
you had the output resolut ion set to 320x240 and
rendered a BMP file. Re-re ndering the scene using
differentoutputsettingsisfastandefficientwith
command-line rendering.
1. Openacommandpromptwindow.
2. Enter the following:
“c:\progr a m fi les\autodesk\3dsm ax9\
3ds ma xcm d” -outputNa me:“ c:\progr a m
files\autodesk\3dsmax9\renderoutput\
myImage.jpg” -w 800 -h 600 “c:\progr am
files\autodesk\3dsmax9\scenes\
myscene.m a x”
and press
Enter .
Note: The specified output path must already
exist. If it doesn’t, the image doesn’t render and
you get an er ror message.
Network r enderi ng f rom the command li ne:
If you have your system networked and have
access to other systems, you can take advantage of
network rendering.
Note: Acommand-linejobcannotberunona
system already r unning the Backburner ser ver.
1. Openacommandpromptwindow.
2. Enter the following:
“c:\progr a m fi les\autodesk\3dsm ax9\
3dsmaxcmd” -submit c :\program f iles\
autodesk\3dsmax9\scenes\myscene.max”
and press
Enter .
Example: Rendering f rom a text f ile:
Command-line rendering gives you the ability to
set a series of common switches that can be quickly
re-used for rendering a single job from Start >
R un, or for rendering a group of scenes specified
in a BAT file. You can build your text file using any
text editor.
Note: A TXT file can specif y only a single scene to
render. For multiple scenes, use a BAT fi le.
1. Open your text editor.
2. Enter your list of commands, such as:
-bitmapPath=\\mapServer\maps\myMaps
-cam=myCamera
-width=800
-height=600
-vfb=true
-frames=all
-force2Sided=true
3. Once all the switches are entered, sav e the files
as a TXT file, such as myrender.txt.
4. To render the scene, open the Windows Start
>Rundialog.
5. Enter the following:
“c:\progr a m fi les \autodesk\3dsma x9\
3dsma xcmd” @c:\myrend er.txt
-o=“ c:\p rogram fil es\a u tod e sk \
3dsma x9\renderoutput\myIma ge.tga
“c:\prog r a m f i les \autodesk\3dsma x9\scenes\
myscene.ma x”
and click OK.
Using a TXT file that contains your favorite
settings, in conju nc tion with a command line
that specifies the output file form at and scene
of your choice, giv es you the flexibility to re-use
the TXT file without having to edit it each time
youwanttorender. Youcancreateseveral
TXT fi les with settings for different stages of
scene development, such as testrender.txt or
finalrender.txt.
Example: R endering fr om a BAT file:
If you want to render several scenes in a batch
process, you can create a BAT fi le containing all t he
scenes and switches needed to get t he results you
want. Just like a text file, you can build yo ur BAT