Batch Processing Utilities
B
258
Lightscape
LSRAD Syntax Example 1
lsrad -cp 20 -v room.lp
This command reads a Preparation file (room.lp), initializes it, and runs a radiosity process with a checkpoint
every 20 iterations. The process can be stopped by typing
Ctrl+C
as described earlier. The output Solution file
is called room.ls.
LSRAD Syntax Example 2
lsrad -cpt 3 -termt 15 -o room1.ls -sh none room.ls
This command reads a Solution file (room.ls) and continues processing it for another 15 minutes with no shadow
computation and with checkpoints every 3 minutes. The output Solution file is called room1.ls.
Ray Tracing Solution Files Using LSRAY
Use the lsray utility to ray trace Solution files. Lightscape uses a ray tracing postprocess to add global illumination
effects such as specular reflections and transparency, as discussed in Chapter 14, “Rendering.” Ray tracing can
also be used to improve the shadows and lighting effects cast by specific light sources. Although it is possible to
ray trace images directly in Lightscape, it is faster and sometimes more convenient to produce the images using
this batch ray tracer. In addition, more advanced ray tracing options are available with the lsray utility. The lsray
utility syntax is shown in the following example:
lsray [options] solution_file image_file
The lsray program takes as input any Solution file and generates an appropriate image file. It is also possible to
produce a series of image files, corresponding to a list of view files, or an animation file. Textures, if present, are
loaded using the current texture path list.
Where:
Indicates:
-cp 20
During radiosity processing, a checkpoint is created every 20 iterations.
-v
Extra information is printed after each iteration.
room.lp
Radiosity processing is performed on the file called room.lp.
Where:
Indicates:
-cpt 3
During radiosity processing, a checkpoint is created every 3 minutes.
-termt 15
Radiosity processing will stop after 15 minutes.
-o room1.ls
An alternate output file called room1.ls will be created.
-sh none
The effect of shadows is not calculated.
room.ls
Radiosity processing is performed on the file room.ls.
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: ......