| 2 |
|
<!-- RCSid $Id$ --> |
| 3 |
|
<head> |
| 4 |
|
<title> |
| 5 |
< |
The RADIANCE 5.4 Synthetic Imaging System |
| 5 |
> |
The RADIANCE 6.0 Synthetic Imaging System |
| 6 |
|
</title> |
| 7 |
|
</head> |
| 8 |
|
<body> |
| 10 |
|
<p> |
| 11 |
|
|
| 12 |
|
<h1> |
| 13 |
< |
The RADIANCE 5.4 Synthetic Imaging System |
| 13 |
> |
The RADIANCE 6.0 Synthetic Imaging System |
| 14 |
|
</h1> |
| 15 |
|
|
| 16 |
|
<p> |
| 1460 |
|
A single line of text will often be accompanied by a negative spacing value. |
| 1461 |
|
A section of text meant to depict a picture, perhaps using a special purpose font such as hexbit4x1.fnt, calls for uniform spacing. |
| 1462 |
|
Reasonable magnitudes for proportional spacing are between 0.1 (for tightly spaced characters) and 0.3 (for wide spacing). |
| 1463 |
+ |
|
| 1464 |
+ |
<p> |
| 1465 |
+ |
|
| 1466 |
+ |
<dt> |
| 1467 |
+ |
<a NAME="Spectrum"> |
| 1468 |
+ |
<b>Spectrum</b> |
| 1469 |
+ |
</a> |
| 1470 |
+ |
|
| 1471 |
+ |
<dd> |
| 1472 |
+ |
The spectrum primitive is the most basic type for introducing spectral |
| 1473 |
+ |
color to a material. |
| 1474 |
+ |
Since materials only provide RGB parameters, spectral patterns |
| 1475 |
+ |
are the only way to superimpose wavelength-dependent behavior. |
| 1476 |
+ |
|
| 1477 |
+ |
<pre> |
| 1478 |
+ |
mod spectrum id |
| 1479 |
+ |
0 |
| 1480 |
+ |
0 |
| 1481 |
+ |
5+ nmA nmB s1 s2 .. sN |
| 1482 |
+ |
</pre> |
| 1483 |
+ |
|
| 1484 |
+ |
<p> |
| 1485 |
+ |
The first two real arguments indicate the limits of the covered |
| 1486 |
+ |
spectral range in nanometers. |
| 1487 |
+ |
Subsequent real values correspond to multipliers in each wavelength band, |
| 1488 |
+ |
where the first band goes from nmA to nmA+(nmB-nmA)/N, and N is the |
| 1489 |
+ |
number of bands (i.e., the number of real arguments minus 2). |
| 1490 |
+ |
The nmA wavelength may be greater or less than the nmB wavelength, |
| 1491 |
+ |
but they may not be equal, and their ordering must correspond to |
| 1492 |
+ |
the ordering of the spectral values. |
| 1493 |
+ |
A minimum of 3 values must be given, which would act |
| 1494 |
+ |
more or less the same as a constant RGB multiplier. |
| 1495 |
+ |
As with RGB values, spectral quantities normally range between 0 |
| 1496 |
+ |
and 1 at each wavelength, or average to 1.0 against a standard |
| 1497 |
+ |
sensitivity functions such as V(lambda). |
| 1498 |
+ |
The best results obtain when the spectral range and number |
| 1499 |
+ |
of samples match rendering options, though resampling will handle |
| 1500 |
+ |
any differences, zero-filling wavelenths outside the nmA to nmB |
| 1501 |
+ |
range. |
| 1502 |
+ |
A warning will be issued if the given wavelength range does not |
| 1503 |
+ |
adequately cover the visible spectrum. |
| 1504 |
+ |
|
| 1505 |
+ |
<p> |
| 1506 |
+ |
|
| 1507 |
+ |
<dt> |
| 1508 |
+ |
<a NAME="Specfile"> |
| 1509 |
+ |
<b>Specfile</b> |
| 1510 |
+ |
</a> |
| 1511 |
+ |
|
| 1512 |
+ |
<dd> |
| 1513 |
+ |
The specfile primitive is equivalent to the spectrum type, but |
| 1514 |
+ |
the wavelength range and values are contained in a 1-dimensional |
| 1515 |
+ |
data file. |
| 1516 |
+ |
This may be a more convenient way to specify a spectral color, |
| 1517 |
+ |
especially one corresponding to a standard illuminant such as D65 |
| 1518 |
+ |
or a library of measured spectra. |
| 1519 |
+ |
|
| 1520 |
+ |
<pre> |
| 1521 |
+ |
mod specfile id |
| 1522 |
+ |
1 datafile |
| 1523 |
+ |
0 |
| 1524 |
+ |
0 |
| 1525 |
+ |
</pre> |
| 1526 |
+ |
|
| 1527 |
+ |
<p> |
| 1528 |
+ |
As with the spectrum type, rendering wavelengths outside the defined |
| 1529 |
+ |
range will be zero-filled. |
| 1530 |
+ |
Unlike the spectrum type, the file may contain non-uniform samples. |
| 1531 |
+ |
|
| 1532 |
+ |
<p> |
| 1533 |
+ |
|
| 1534 |
+ |
<dt> |
| 1535 |
+ |
<a NAME="Specfunc"> |
| 1536 |
+ |
<b>Specfunc</b> |
| 1537 |
+ |
</a> |
| 1538 |
+ |
|
| 1539 |
+ |
<dd> |
| 1540 |
+ |
The specfunc primitive offers dynamic control over a spectral |
| 1541 |
+ |
pattern, similar to the colorfunc type. |
| 1542 |
+ |
|
| 1543 |
+ |
<pre> |
| 1544 |
+ |
mod specfunc id |
| 1545 |
+ |
2+ sval funcfile transform |
| 1546 |
+ |
0 |
| 1547 |
+ |
2+ nmA nmB A3 .. |
| 1548 |
+ |
</pre> |
| 1549 |
+ |
|
| 1550 |
+ |
<p> |
| 1551 |
+ |
Like the spectrum primitive, the wavelength range is specified |
| 1552 |
+ |
in the first two real arguments, and additional real values are |
| 1553 |
+ |
accessible to the sval function. |
| 1554 |
+ |
This function is fed a wavelenth sample |
| 1555 |
+ |
between nmA and nmB as its only argument, |
| 1556 |
+ |
and it returns the corresponding spectral intensity. |
| 1557 |
|
|
| 1558 |
|
</dl> |
| 1559 |
|
|