The example blob input file below should be compared with the first example for the spray input file. It is identical, except for the blob specific portions. Even the
RenderWorld_data_file spray 5 5 line is used for blobs. However, the portion of the spray file describing the number and characteristics of spray sources has been removed, and replaced with lines for either reading in an existing cloud distribution, as in this example, or for generating a new cloud distribution for the initial distribution, as is discussed below. An addition difference between blobs and sprays is that in the scene file, the object_type blob must be used instead of object_type spray.
RenderWorld_data_file volume 1 1
216
216
64
12
12
15
number_of_bands 3
band_id 1 2 3
0.025 0.025 0.025
0.1 0.1 0.1
0.025 0.025 0.025
phase_functions.dat
0.01
multiple
0.125
0.01
0.004
end
RenderWorld_data_file spray 5 5
0
100
yes
density.dat
yes
0
0
15
yes
250
250
150
0.5
yes
density.dat
wind
0
15 90
1000.0
0.1
4.0
0.001
full
no
no
end
The alternative to reading a cloud density file as an initial distribution is to create a new blob, based on a parametric/statistical model of cloud internal structure. To choose this approach, the lines
input_blob_from_file yes
file density.dat
should be replaced with the set of lines:
input_blob_from_file no
center_x: 32
center_y: 32
center_z: 32
radius: 50
height: 10
fluctuation_strength: 0.3
mean_density: 5
With this choice the blob object creates a cylindrical volume within the bounding box with the indicated radius and height in units of meters, positioned within the bounding box at (center_x, center_y, center_z), which are in units of cell indices. The density of cloud material in th cylindrical varies from cell to cell, with the magnitude of the fluctuations and the mean density given in the last two lines.