8
Exporting Animations 587
3.
Ifyoudidn’texportalloftheobjectsinyour
scene, choose the Selected Objects radio button.
4. Set the other parameters a s you norma lly
would.
Impor tant: Make sure the units are the same as
when you exported the animated objects.
5.
Click OK. This exports the parameters to be
used for processing in a Lightscape Parameters
(DF) file.
To over ride parameters:
1.
Start Lightscape.
2. Open the Lightscape Preparation fi le that
contains the nonanimated objects.
3. Open one of the Lig htscape Preparation files
containing the animated objects. On the Open
Filedialog,turnontheAppendcheckbox.
4. Choose File > Parameters > Load, and load the
parameter file you exported.
5. Use the Parameter Wizard or adjust the
processing parameters m anually. Initiate the
radiosity solution. When asked, do
not
save
theLightscapePreparationfile. Processthe
solution.
6. Continue adjusting parameters, resetting, and
processing until you are satisfied. Try to get 15
percent of initial energy, or less, st ill unshot (at
least 85 percent of the initial energy should be
distributed).
7. Choose File > Parameters > Save As, and save
the parameters over the DF file you exported.
You do not need to save the solution file.
8. Select Process > Statistics, and make a note of
the number of iterations Lightscape needed.
To batch-process t he LP fil es:
To process the Lightscape Preparation (LP) fi les,
youmustrunabatchfiletoprocessallofthe
frames. The name of this file is
lsanim.bat
.By
default, it is installed in the
\bin
subdirectory of
thedirectorywhereLightscapeisinstalled.
Note: If you installed Lightscape after installing
3ds Max, you can find
lsanim.bat
in the same
directory where 3ds Max is installed.
1. Yo u m i g h t w a n t t o c o p y a n d e d i t t h e b e g i n n i n g
of
lsanim.bat
,tosetparametersandgivethe
paths to the batch ut ilities. T he beginning of
lsanim.bat
looks like this:
Note: See the online
User Reference
to view this
code.
2. Open a command shel l, and enter lsm erge -h
to run that utility.
If you do not see a short help message for
lsmerge
, then you will need to add the path
to the
lsmerge
,
lsrad
and
lsray
utilities. The
utilities are located in the
\bin
subdirectory in
thedirectorywhereLightscapewasinstalled.
For example, you might need to change the
lsmergelineabovetobe:
Note: See the online
User Reference
to view this
code.
You can also use t he OpenGL renderer by
changing
lsray
to
lsrender
and using options for
lsrender
. Look in the Lightscape help file for
moreinformationontheutilitiesandoptions.
3. Change <ITERATIONS> to the number of
iterations you noted when overriding the
process parameters.
4. If you want to save the solution files, change
SAVELS=0 to SAVELS=1. T his will require
extra disk space to hold the solution files.
5. Set PREPFILES, SOLUTIONFILES, and
IMAGEFILES to the directories where the
preparation files exist and where solution files
and image fi les wi ll be c reated.
6. You can change IMAGETYPE to change the
file t ype for the image files. For example
IMAGETYPE=tga will output Targa files.