ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/doc/ray.html
(Generate patch)

Comparing ray/doc/ray.html (file contents):
Revision 1.32 by greg, Fri Nov 3 17:41:27 2023 UTC vs.
Revision 1.37 by greg, Tue Dec 12 20:25:22 2023 UTC

# Line 2 | Line 2
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>
# Line 10 | Line 10 | The RADIANCE 5.4 Synthetic Imaging System
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>
# Line 1460 | Line 1460 | or:
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 extrema of the
1486 +        spectral range in nanometers.
1487 +        Subsequent real values correspond to multipliers at each wavelength.
1488 +        The nmA wavelength may be greater or less than nmB,
1489 +        but they may not be equal, and their ordering matches
1490 +        the order of the spectral values.
1491 +        A minimum of 3 values must be given, which would act
1492 +        more or less the same as a constant RGB multiplier.
1493 +        As with RGB values, spectral quantities normally range between 0
1494 +        and 1 at each wavelength, or average to 1.0 against a standard
1495 +        sensitivity functions such as V(lambda).
1496 +        The best results obtain when the spectral range and number
1497 +        of samples match rendering options, though resampling will handle
1498 +        any differences, zero-filling wavelenths outside the nmA to nmB
1499 +        range.
1500 +        A warning will be issued if the given wavelength range does not
1501 +        adequately cover the visible spectrum.
1502 +
1503 + <p>
1504 +
1505 + <dt>
1506 +        <a NAME="Specfile">
1507 +        <b>Specfile</b>
1508 +        </a>
1509 +
1510 + <dd>
1511 +        The specfile primitive is equivalent to the spectrum type, but
1512 +        the wavelength range and values are contained in a 1-dimensional
1513 +        data file.
1514 +        This may be a more convenient way to specify a spectral color,
1515 +        especially one corresponding to a standard illuminant such as D65
1516 +        or a library of measured spectra.
1517 +
1518 + <pre>
1519 +        mod specfile id
1520 +        1 datafile
1521 +        0
1522 +        0
1523 + </pre>
1524 +
1525 + <p>
1526 +        As with the spectrum type, rendering wavelengths outside the defined
1527 +        range will be zero-filled.
1528 +        Unlike the spectrum type, the file may contain non-uniform samples.
1529 +
1530 + <p>
1531 +
1532 + <dt>
1533 +        <a NAME="Specfunc">
1534 +        <b>Specfunc</b>
1535 +        </a>
1536 +
1537 + <dd>
1538 +        The specfunc primitive offers dynamic control over a spectral
1539 +        pattern, similar to the colorfunc type.
1540 +
1541 + <pre>
1542 +        mod specfunc id
1543 +        2+ sfunc funcfile transform
1544 +        0
1545 +        2+ nmA nmB A3 ..
1546 + </pre>
1547 +
1548 + <p>
1549 +        Like the spectrum primitive, the wavelength range is specified
1550 +        in the first two real arguments, and additional real values are
1551 +        set in the evaluation context.
1552 +        This function is fed a wavelenth sample
1553 +        between nmA and nmB as its only argument,
1554 +        and it returns the corresponding spectral intensity.
1555  
1556   </dl>
1557  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines