Creating Batch Files
283
❚❘❘
Running Batch Utilities
To run a batch utility in DOS:
1.
Choose Start | Programs | MS-DOS Prompt.
A DOS shell appears.
2.
At the command prompt (C:\WINDOWS>), type the following, then press Enter:
CD “\PROGRAM FILES\LIGHTSCAPE\BIN”
Note:
You must run the batch file within the directory in which the utilities are located. If your utilities are
installed in a different directory than the one indicated above, type the path to the appropriate directory, then
press Enter.
3.
At the command prompt, type the name of the batch utility, then press Enter. For instance:
<batch_file>.bat
The commands in the batch utility begin executing sequentially.
Batch Raytracing
One of the most common uses of batch files is to ray trace images from multiple Solution files, or from the same
file using different views or resolutions.
If you want to make multiple images from a single Solution file, and the parameters of the image will not change,
you can use the -svf option to specify a list of views, as demonstrated in the last line of the following batch file.
lsray -aa 4 -vf view1.vw -x 1280 -y 1024 solution1.ls image1.tif
lsray -aa 4 -vf view2.vw -x 640 -y 512 solution1.ls image2.tif
lsray -aa 4 -x 1280 -y 1024 solution2.ls image3.tif
lsray -aa 4 -x 1280 -y 1024 -svf view1.vw view2.vw view3.vw -evf
solution1.ls image.tif
Batch Radiosity Processing
You may want to run a series of tests overnight using different processing parameters to see which parameters
result in the best radiosity solution.
In the following example four tests are run, each for three hours. Notice that the Preparation file remains the
same but the parameters file, which contains the meshing parameters, is changed and each file is saved to a
different Solution file.
lsrad -v -termt 180 -df test1.df -cpt 15 -o test1.ls test.lp
lsrad -v -termt 180 -df test2.df -cpt 15 -o test2.ls test.lp
Summary of Contents for LIGHTSCAPE
Page 1: ...SULO 4 31 93 36034333308355 LJKWVFDSH...
Page 18: ...NOTES 10...
Page 110: ...NOTES 102...
Page 136: ...NOTES 128...
Page 166: ...NOTES 158...
Page 176: ...NOTES 168...
Page 202: ...NOTES 194...
Page 210: ...NOTES 202...
Page 248: ...NOTES 240...
Page 294: ...NOTES 286...
Page 308: ...NOTES 300...
Page 316: ...NOTES 308...
Page 324: ...NOTES 316...
Page 342: ...Glossary 334 Lightscape...
Page 360: ...Index ix 352 Lightscape...
Page 362: ......