1 |
|
<html> |
2 |
+ |
<!-- RCSid $Id$ --> |
3 |
|
<head> |
4 |
|
<title> |
5 |
< |
The RADIANCE 4.1 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 4.1 Synthetic Imaging System |
13 |
> |
The RADIANCE 6.0 Synthetic Imaging System |
14 |
|
</h1> |
15 |
|
|
16 |
|
<p> |
83 |
|
(ovals). |
84 |
|
The central program is <i>rpict</i>, which produces a picture from a scene |
85 |
|
description. |
86 |
< |
<i>Rview</i> is a variation of rpict that computes and displays images |
86 |
> |
<i>Rvu</i> is a variation of rpict that computes and displays images |
87 |
|
interactively, and rtrace computes single ray values. |
88 |
|
Other programs (not shown) connect many of these elements together, |
89 |
|
such as the executive programs |
148 |
|
... |
149 |
|
</pre> |
150 |
|
|
151 |
+ |
<p> |
152 |
+ |
|
153 |
|
A comment line begins with a pound sign, `#'. |
154 |
|
|
155 |
|
<p> |
396 |
|
0 |
397 |
|
</pre> |
398 |
|
|
399 |
+ |
<p> |
400 |
|
If the modifier is "void", then surfaces will |
401 |
|
use the modifiers given in the original description. |
402 |
|
Otherwise, the modifier specified is used in their place. |
441 |
|
0 |
442 |
|
</pre> |
443 |
|
|
444 |
+ |
<p> |
445 |
+ |
|
446 |
|
If the modifier is "void", then surfaces will |
447 |
|
use the modifiers given in the original mesh description. |
448 |
|
Otherwise, the modifier specified is used in their place. |
537 |
|
4 red green blue maxrad |
538 |
|
</pre> |
539 |
|
|
540 |
+ |
<p> |
541 |
|
If maxrad is zero, then the surface will never be tested for shadow, although it may participate in an interreflection calculation. |
542 |
|
If maxrad is negative, then the surface will never contribute to scene illumination. |
543 |
|
Glow sources will never illuminate objects on the other side of an illum surface. |
586 |
|
3 red green blue |
587 |
|
</pre> |
588 |
|
|
589 |
+ |
While alternate materials that are reflective will appear as normal, |
590 |
+ |
indirect rays will use the mirror's reflectance rather than the |
591 |
+ |
alternate type. |
592 |
+ |
Transmitting materials are an exception, where both transmission and |
593 |
+ |
reflection will use the alternate type for all rays not specifically |
594 |
+ |
targeting virtual light sources. |
595 |
+ |
In this case, it is important that any reflections be purely specular |
596 |
+ |
(mirror-like) and equal to the mirror's reflectivity |
597 |
+ |
to maintain a valid result. |
598 |
+ |
A pure diffuse reflection may be added if desired. |
599 |
+ |
|
600 |
|
<p> |
601 |
|
|
602 |
+ |
The mirror material type reflects light sources only from the front side |
603 |
+ |
of a surface, regardless of any alternate material. |
604 |
+ |
If virtual source generation is desired on both sides, two coincident |
605 |
+ |
surfaces with opposite normal orientations may be employed to achieve |
606 |
+ |
this effect. |
607 |
+ |
The reflectance and alternate material type may be |
608 |
+ |
different for the overlapped surfaces, |
609 |
+ |
and the two sides will behave accordingly. |
610 |
+ |
|
611 |
+ |
<p> |
612 |
+ |
|
613 |
|
<dt> |
614 |
|
<a NAME="Prism1"> |
615 |
|
<b>Prism1</b> |
631 |
|
n A1 A2 .. An |
632 |
|
</pre> |
633 |
|
|
634 |
+ |
<p> |
635 |
+ |
|
636 |
|
The new direction variables dx, dy and dz need not produce a normalized vector. |
637 |
|
For convenience, the variables DxA, DyA and DzA are defined as the normalized direction to the target light source. |
638 |
|
See <a HREF="#Function">section 2.2.1</a> on function files for further information. |
676 |
|
3 source1 mirror1>source10 mirror2>mirror1>source3 |
677 |
|
</pre> |
678 |
|
|
679 |
+ |
<p> |
680 |
|
Normally, only one source is given per mist material, and there is an |
681 |
|
upper limit of 32 to the total number of active scattering sources. |
682 |
|
The extinction coefficient, if given, is added the the global |
697 |
|
P(theta) = (1 - g*g) / (1 + g*g - 2*g*cos(theta))^1.5 |
698 |
|
</pre> |
699 |
|
|
700 |
+ |
<p> |
701 |
+ |
|
702 |
|
A perfectly isotropic scattering medium has a g parameter of 0, and |
703 |
|
a highly directional material has a g parameter close to 1. |
704 |
|
Fits to the g parameter may be found along with typical extinction |
713 |
|
0|3|6|7 [ rext gext bext [ ralb galb balb [ g ] ] ] |
714 |
|
</pre> |
715 |
|
|
716 |
+ |
<p> |
717 |
+ |
|
718 |
|
There are two usual uses of the mist type. |
719 |
|
One is to surround a beam from a spotlight or laser so that it is |
720 |
|
visible during rendering. |
833 |
|
|
834 |
|
<dd> |
835 |
|
Trans2 is the anisotropic version of <a HREF="#Trans">trans</a>. |
836 |
< |
The string arguments are the same as for plastic2, and the real arguments are the same as for trans but with an additional roughness value. |
836 |
> |
The string arguments are the same as for <a HREF="#Plastic2">plastic2</a>, |
837 |
> |
and the real arguments are the same as for trans but with an additional roughness value. |
838 |
|
|
839 |
|
<pre> |
840 |
|
mod trans2 id |
846 |
|
<p> |
847 |
|
|
848 |
|
<dt> |
849 |
+ |
<a NAME="Ashik2"> |
850 |
+ |
<b>Ashik2</b> |
851 |
+ |
</a> |
852 |
+ |
|
853 |
+ |
<dd> |
854 |
+ |
Ashik2 is the anisotropic reflectance model by Ashikhmin & Shirley. |
855 |
+ |
The string arguments are the same as for <a HREF="#Plastic2">plastic2</a>, but the real |
856 |
+ |
arguments have additional flexibility to specify the specular color. |
857 |
+ |
Also, rather than roughness, specular power is used, which has no |
858 |
+ |
physical meaning other than larger numbers are equivalent to a smoother |
859 |
+ |
surface. |
860 |
+ |
Unlike other material types, total reflectance is the sum of |
861 |
+ |
diffuse and specular colors, and should be adjusted accordingly. |
862 |
+ |
<pre> |
863 |
+ |
mod ashik2 id |
864 |
+ |
4+ ux uy uz funcfile transform |
865 |
+ |
0 |
866 |
+ |
8 dred dgrn dblu sred sgrn sblu u-power v-power |
867 |
+ |
</pre> |
868 |
+ |
|
869 |
+ |
<p> |
870 |
+ |
|
871 |
+ |
<dt> |
872 |
+ |
<a NAME="WGMDfunc"> |
873 |
+ |
<b>WGMDfunc</b> |
874 |
+ |
</a> |
875 |
+ |
|
876 |
+ |
<dd> |
877 |
+ |
WGMDfunc is a more programmable version of <a HREF="#Trans2">trans2</a>, |
878 |
+ |
with separate modifier paths and variables to control each component. |
879 |
+ |
(WGMD stands for Ward-Geisler-Moroder-Duer, which is the basis for |
880 |
+ |
this empirical model, similar to previous ones beside Ashik2.) |
881 |
+ |
The specification of this material is given below. |
882 |
+ |
<pre> |
883 |
+ |
mod WGMDfunc id |
884 |
+ |
13+ rs_mod rs rs_urough rs_vrough |
885 |
+ |
ts_mod ts ts_urough ts_vrough |
886 |
+ |
td_mod |
887 |
+ |
ux uy uz funcfile transform |
888 |
+ |
0 |
889 |
+ |
9+ rfdif gfdif bfdif |
890 |
+ |
rbdif gbdif bbdif |
891 |
+ |
rtdif gtdif btdif |
892 |
+ |
A10 .. |
893 |
+ |
</pre> |
894 |
+ |
|
895 |
+ |
<p> |
896 |
+ |
|
897 |
+ |
The sum of specular reflectance (<I>rs</I>), specular transmittance (<I>ts</I>), |
898 |
+ |
diffuse reflectance (<I>rfdif gfdif bfdif</I> for front and <I>rbdif gbdif bbdif</I> for back) |
899 |
+ |
and diffuse transmittance (<I>rtdif gtdif btdif</I>) should be less than 1 for each |
900 |
+ |
channel. |
901 |
+ |
|
902 |
+ |
<p> |
903 |
+ |
|
904 |
+ |
Unique to this material, separate modifier channels are |
905 |
+ |
provided for each component. |
906 |
+ |
The main modifier is used on the diffuse reflectance, both |
907 |
+ |
front and back. |
908 |
+ |
The <I>rs_mod</I> modifier is used for specular reflectance. |
909 |
+ |
If "void" is given for <I>rs_mod</I>, |
910 |
+ |
then the specular reflection color will be white. |
911 |
+ |
The special "inherit" keyword may also be given, in which case |
912 |
+ |
specular reflectance will share the main modifier. |
913 |
+ |
This behavior is replicated for the specular transmittance modifier |
914 |
+ |
<I>ts_mod</I>, which also has its own independent roughness expressions. |
915 |
+ |
Finally, the diffuse transmittance modifier is given as |
916 |
+ |
<I>td_mod</I>, which may also be "void" or "inherit". |
917 |
+ |
Note that any spectra or color for specular components must be |
918 |
+ |
carried by the named modifier(s). |
919 |
+ |
|
920 |
+ |
<p> |
921 |
+ |
|
922 |
+ |
The main advantage to this material over |
923 |
+ |
<a HREF="#BRTDfunc">BRTDfunc</a> and |
924 |
+ |
other programmable types described below is that the specular sampling is |
925 |
+ |
well-defined, so that all components are fully computed. |
926 |
+ |
|
927 |
+ |
<p> |
928 |
+ |
|
929 |
+ |
<dt> |
930 |
|
<a NAME="Dielectric"> |
931 |
|
<b>Dielectric</b> |
932 |
|
</a> |
987 |
|
tn = (sqrt(.8402528435+.0072522239*Tn*Tn)-.9166530661)/.0036261119/Tn |
988 |
|
</pre> |
989 |
|
|
990 |
+ |
<p> |
991 |
+ |
|
992 |
|
Standard 88% transmittance glass has a transmissivity of 0.96. |
993 |
|
(A <a HREF="#Patterns">pattern</a> modifying glass will affect the transmissivity.) |
994 |
|
If a fourth real argument is given, it is interpreted as the index of refraction to use instead of 1.52. |
1020 |
|
4+ red green blue spec A5 .. |
1021 |
|
</pre> |
1022 |
|
|
1023 |
+ |
<p> |
1024 |
+ |
|
1025 |
|
The function refl takes four arguments, the x, y and z |
1026 |
|
direction towards the incident light, and the solid angle |
1027 |
|
subtended by the source. |
1063 |
|
6+ red green blue rspec trans tspec A7 .. |
1064 |
|
</pre> |
1065 |
|
|
1066 |
+ |
<p> |
1067 |
+ |
|
1068 |
|
Where trans is the total light transmitted and tspec is the non-Lambertian fraction of transmitted light. |
1069 |
|
The function brtd should integrate to 1 over each projected hemisphere. |
1070 |
|
|
1092 |
|
A10 .. |
1093 |
|
</pre> |
1094 |
|
|
1095 |
+ |
<p> |
1096 |
+ |
|
1097 |
|
The variables rrefl, grefl and brefl specify the color coefficients for the ideal specular (mirror) reflection of the surface. |
1098 |
|
The variables rtrns, gtrns and btrns specify the color coefficients for the ideal specular transmission. |
1099 |
|
The functions rbrtd, gbrtd and bbrtd take the direction to the incident light (and its solid angle) and |
1138 |
|
4+ red green blue spec A5 .. |
1139 |
|
</pre> |
1140 |
|
|
1141 |
+ |
<p> |
1142 |
+ |
|
1143 |
|
The coordinate indices (x1, x2, etc.) are themselves functions of the x, y and z direction to the incident light, plus the solid angle |
1144 |
|
subtended by the light source (usually ignored). |
1145 |
|
The data function (func) takes five variables, the |
1259 |
|
<p> |
1260 |
|
|
1261 |
|
<dt> |
1262 |
+ |
<a NAME="aBSDF"> |
1263 |
+ |
<b>aBSDF</b> |
1264 |
+ |
</a> |
1265 |
+ |
|
1266 |
+ |
<dd> |
1267 |
+ |
The aBSDF material is identical to the BSDF type with two |
1268 |
+ |
important differences. First, proxy geometry is not |
1269 |
+ |
supported, so there is no thickness parameter. Second, an |
1270 |
+ |
aBSDF is assumed to have some specular through component |
1271 |
+ |
(the ’a’ stands for "aperture"), |
1272 |
+ |
which is treated specially during the direct calculation |
1273 |
+ |
and when viewing the material. Based on the BSDF data, the |
1274 |
+ |
coefficient of specular transmission is determined and used |
1275 |
+ |
for modifying unscattered shadow and view rays. |
1276 |
+ |
|
1277 |
+ |
<pre> |
1278 |
+ |
mod aBSDF id |
1279 |
+ |
5+ BSDFfile ux uy uz funcfile transform |
1280 |
+ |
0 |
1281 |
+ |
0|3|6|9 |
1282 |
+ |
rfdif gfdif bfdif |
1283 |
+ |
rbdif gbdif bbdif |
1284 |
+ |
rtdif gtdif btdif |
1285 |
+ |
</pre> |
1286 |
+ |
|
1287 |
+ |
<p> |
1288 |
+ |
If a material has no specular transmitted component, it is |
1289 |
+ |
much better to use the BSDF type with a zero thickness |
1290 |
+ |
than to use aBSDF. |
1291 |
+ |
<p> |
1292 |
+ |
|
1293 |
+ |
<dt> |
1294 |
|
<a NAME="Antimatter"> |
1295 |
|
<b>Antimatter</b> |
1296 |
|
</a> |
1306 |
|
0 |
1307 |
|
</pre> |
1308 |
|
|
1309 |
+ |
<p> |
1310 |
+ |
|
1311 |
|
The first modifier will also be used to shade the area leaving the antimatter volume and entering the regular volume. |
1312 |
|
If mod1 is void, the antimatter volume is completely invisible. |
1313 |
|
Antimatter does not work properly with the material type <a HREF="#Trans">"trans"</a>, |
1362 |
|
n A1 A2 .. An |
1363 |
|
</pre> |
1364 |
|
|
1365 |
+ |
<p> |
1366 |
+ |
|
1367 |
|
</dl> |
1368 |
|
|
1369 |
|
<p> |
1503 |
|
[spacing] |
1504 |
|
</pre> |
1505 |
|
|
1506 |
+ |
<p> |
1507 |
+ |
|
1508 |
|
or: |
1509 |
|
|
1510 |
|
<pre> |
1542 |
|
[spacing] |
1543 |
|
</pre> |
1544 |
|
|
1545 |
+ |
<p> |
1546 |
+ |
|
1547 |
|
or: |
1548 |
|
|
1549 |
|
<pre> |
1572 |
|
A section of text meant to depict a picture, perhaps using a special purpose font such as hexbit4x1.fnt, calls for uniform spacing. |
1573 |
|
Reasonable magnitudes for proportional spacing are between 0.1 (for tightly spaced characters) and 0.3 (for wide spacing). |
1574 |
|
|
1575 |
+ |
<p> |
1576 |
+ |
|
1577 |
+ |
<dt> |
1578 |
+ |
<a NAME="Spectrum"> |
1579 |
+ |
<b>Spectrum</b> |
1580 |
+ |
</a> |
1581 |
+ |
|
1582 |
+ |
<dd> |
1583 |
+ |
The spectrum primitive is the most basic type for introducing spectral |
1584 |
+ |
color to a material. |
1585 |
+ |
Since materials only provide RGB parameters, spectral patterns |
1586 |
+ |
are the only way to superimpose wavelength-dependent behavior. |
1587 |
+ |
|
1588 |
+ |
<pre> |
1589 |
+ |
mod spectrum id |
1590 |
+ |
0 |
1591 |
+ |
0 |
1592 |
+ |
5+ nmA nmB s1 s2 .. sN |
1593 |
+ |
</pre> |
1594 |
+ |
|
1595 |
+ |
<p> |
1596 |
+ |
The first two real arguments indicate the extrema of the |
1597 |
+ |
spectral range in nanometers. |
1598 |
+ |
Subsequent real values correspond to multipliers at each wavelength. |
1599 |
+ |
The nmA wavelength may be greater or less than nmB, |
1600 |
+ |
but they may not be equal, and their ordering matches |
1601 |
+ |
the order of the spectral values. |
1602 |
+ |
A minimum of 3 values must be given, which would act |
1603 |
+ |
more or less the same as a constant RGB multiplier. |
1604 |
+ |
As with RGB values, spectral quantities normally range between 0 |
1605 |
+ |
and 1 at each wavelength, or average to 1.0 against a standard |
1606 |
+ |
sensitivity functions such as V(lambda). |
1607 |
+ |
The best results obtain when the spectral range and number |
1608 |
+ |
of samples match rendering options, though resampling will handle |
1609 |
+ |
any differences, zero-filling wavelenths outside the nmA to nmB |
1610 |
+ |
range. |
1611 |
+ |
A warning will be issued if the given wavelength range does not |
1612 |
+ |
adequately cover the visible spectrum. |
1613 |
+ |
|
1614 |
+ |
<p> |
1615 |
+ |
|
1616 |
+ |
<dt> |
1617 |
+ |
<a NAME="Specfile"> |
1618 |
+ |
<b>Specfile</b> |
1619 |
+ |
</a> |
1620 |
+ |
|
1621 |
+ |
<dd> |
1622 |
+ |
The specfile primitive is equivalent to the spectrum type, but |
1623 |
+ |
the wavelength range and values are contained in a 1-dimensional |
1624 |
+ |
data file. |
1625 |
+ |
This may be a more convenient way to specify a spectral color, |
1626 |
+ |
especially one corresponding to a standard illuminant such as D65 |
1627 |
+ |
or a library of measured spectra. |
1628 |
+ |
|
1629 |
+ |
<pre> |
1630 |
+ |
mod specfile id |
1631 |
+ |
1 datafile |
1632 |
+ |
0 |
1633 |
+ |
0 |
1634 |
+ |
</pre> |
1635 |
+ |
|
1636 |
+ |
<p> |
1637 |
+ |
As with the spectrum type, rendering wavelengths outside the defined |
1638 |
+ |
range will be zero-filled. |
1639 |
+ |
Unlike the spectrum type, the file may contain non-uniform samples. |
1640 |
+ |
|
1641 |
+ |
<p> |
1642 |
+ |
|
1643 |
+ |
<dt> |
1644 |
+ |
<a NAME="Specfunc"> |
1645 |
+ |
<b>Specfunc</b> |
1646 |
+ |
</a> |
1647 |
+ |
|
1648 |
+ |
<dd> |
1649 |
+ |
The specfunc primitive offers dynamic control over a spectral |
1650 |
+ |
pattern, similar to the colorfunc type. |
1651 |
+ |
|
1652 |
+ |
<pre> |
1653 |
+ |
mod specfunc id |
1654 |
+ |
2+ sfunc funcfile transform |
1655 |
+ |
0 |
1656 |
+ |
2+ nmA nmB A3 .. |
1657 |
+ |
</pre> |
1658 |
+ |
|
1659 |
+ |
<p> |
1660 |
+ |
Like the spectrum primitive, the wavelength range is specified |
1661 |
+ |
in the first two real arguments, and additional real values are |
1662 |
+ |
set in the evaluation context. |
1663 |
+ |
This function is fed a wavelenth sample |
1664 |
+ |
between nmA and nmB as its only argument, |
1665 |
+ |
and it returns the corresponding spectral intensity. |
1666 |
+ |
|
1667 |
+ |
<dt> |
1668 |
+ |
<a NAME="Specdata"> |
1669 |
+ |
<b>Specdata</b> |
1670 |
+ |
</a> |
1671 |
+ |
|
1672 |
+ |
<dd> |
1673 |
+ |
Specdata is like brightdata and colordata, but with more |
1674 |
+ |
than 3 specular samples. |
1675 |
+ |
|
1676 |
+ |
<pre> |
1677 |
+ |
mod specdata id |
1678 |
+ |
3+n+ |
1679 |
+ |
func datafile |
1680 |
+ |
funcfile x1 x2 .. xn transform |
1681 |
+ |
0 |
1682 |
+ |
m A1 A2 .. Am |
1683 |
+ |
</pre> |
1684 |
+ |
|
1685 |
+ |
<p> |
1686 |
+ |
The data file must have one more dimension than the coordinate |
1687 |
+ |
variable count, as this final dimension corresponds to the covered |
1688 |
+ |
spectrum. |
1689 |
+ |
The starting and ending wavelengths are specified in "datafile" |
1690 |
+ |
as well as the number of spectral samples. |
1691 |
+ |
The function "func" will be called with two parameters, the |
1692 |
+ |
interpolated spectral value for the current coordinate and the |
1693 |
+ |
associated wavelength. |
1694 |
+ |
If the spectrum is broken into 12 components, then 12 calls |
1695 |
+ |
will be made to "func" for the relevant ray evaluation. |
1696 |
+ |
|
1697 |
+ |
<dt> |
1698 |
+ |
<a NAME="Specpict"> |
1699 |
+ |
<b>Specpict</b> |
1700 |
+ |
</a> |
1701 |
+ |
|
1702 |
+ |
<dd> |
1703 |
+ |
Specpict is a special case of specdata, where the pattern is |
1704 |
+ |
a hyperspectral image stored in the common-exponent file format. |
1705 |
+ |
The dimensions of the image data are determined by the picture |
1706 |
+ |
just as with the colorpict primitive. |
1707 |
+ |
|
1708 |
+ |
<pre> |
1709 |
+ |
mod specpict id |
1710 |
+ |
5+ |
1711 |
+ |
func specfile |
1712 |
+ |
funcfile u v transform |
1713 |
+ |
0 |
1714 |
+ |
m A1 A2 .. Am |
1715 |
+ |
</pre> |
1716 |
+ |
|
1717 |
+ |
<p> |
1718 |
+ |
The function "func" is called with the interpolated pixel value |
1719 |
+ |
and the wavelength sample in nanometers, the same as specdata, |
1720 |
+ |
with as many calls made as there are components in "specfile". |
1721 |
+ |
|
1722 |
|
</dl> |
1723 |
|
|
1724 |
|
<p> |
1729 |
|
</h4> |
1730 |
|
|
1731 |
|
A mixture is a blend of one or more materials or textures and patterns. |
1732 |
+ |
Blended materials should not be light source types or virtual source types. |
1733 |
|
The basic types are given below. |
1734 |
|
|
1735 |
|
<p> |
1751 |
|
n A1 A2 .. An |
1752 |
|
</pre> |
1753 |
|
|
1754 |
+ |
<p> |
1755 |
+ |
|
1756 |
|
Foreground and background are modifier names that must be |
1757 |
|
defined earlier in the scene description. |
1758 |
|
If one of these is a material, then |
1781 |
|
m A1 A2 .. Am |
1782 |
|
</pre> |
1783 |
|
|
1784 |
+ |
<p> |
1785 |
+ |
|
1786 |
|
<dt> |
1787 |
|
<a NAME="Mixpict"> |
1788 |
|
<b>Mixpict</b> |
1806 |
|
arguments, the red, green and blue values |
1807 |
|
corresponding to the pixel at (u,v). |
1808 |
|
|
1489 |
– |
</dl> |
1809 |
|
<p> |
1810 |
|
|
1811 |
|
<dt> |
1827 |
|
[spacing] |
1828 |
|
</pre> |
1829 |
|
|
1830 |
+ |
<p> |
1831 |
+ |
|
1832 |
|
or: |
1833 |
|
|
1834 |
|
<pre> |
1844 |
|
[spacing] |
1845 |
|
</pre> |
1846 |
|
|
1847 |
+ |
<p> |
1848 |
+ |
|
1849 |
|
</dl> |
1850 |
|
|
1851 |
|
<p> |
1890 |
|
cfunc(x) : 10*x / sqrt(x) ; |
1891 |
|
</pre> |
1892 |
|
|
1893 |
+ |
<p> |
1894 |
+ |
|
1895 |
|
Many variables and functions are already defined by the program, and they are listed in the file rayinit.cal. |
1896 |
|
The following variables are particularly important: |
1897 |
|
|
1906 |
|
arg(i) - i'th real argument |
1907 |
|
</pre> |
1908 |
|
|
1909 |
+ |
<p> |
1910 |
+ |
|
1911 |
|
For mesh objects, the local surface coordinates are available: |
1912 |
|
|
1913 |
|
<pre> |
1914 |
|
Lu, Lv - local (u,v) coordinates |
1915 |
|
</pre> |
1916 |
|
|
1917 |
+ |
<p> |
1918 |
+ |
|
1919 |
|
For BRDF types, the following variables are defined as well: |
1920 |
|
|
1921 |
|
<pre> |
1924 |
|
CrP, CgP, CbP - perturbed material color |
1925 |
|
</pre> |
1926 |
|
|
1927 |
+ |
<p> |
1928 |
+ |
|
1929 |
|
A unique context is set up for each file so |
1930 |
|
that the same variable may appear in different |
1931 |
|
function files without conflict. |
1980 |
|
DATA, later dimensions changing faster. |
1981 |
|
</pre> |
1982 |
|
|
1983 |
+ |
<p> |
1984 |
+ |
|
1985 |
|
N is the number of dimensions. |
1986 |
|
For each dimension, the beginning and ending coordinate values and the dimension size is given. |
1987 |
|
Alternatively, individual coordinate values can be given when the points are not evenly spaced. |
2010 |
|
... |
2011 |
|
</pre> |
2012 |
|
|
2013 |
+ |
<p> |
2014 |
+ |
|
2015 |
|
The ASCII codes can appear in any order. N is the number of vertices, and the last is automatically connected to the first. |
2016 |
|
Separate polygonal sections are joined by coincident sides. |
2017 |
|
The character coordinate system is a square with lower left corner at (0,0), lower right at (255,0) and upper right at (255,255). |
2087 |
|
directs the use of a scene description. |
2088 |
|
<ul> |
2089 |
|
<li> |
2090 |
< |
<a NAME="rvu" HREF="../man_html/rvu.1.html"><b>Rview</b></a> is ray-tracing program for viewing a scene interactively. |
2090 |
> |
<a NAME="rvu" HREF="../man_html/rvu.1.html"><b>Rvu</b></a> is ray-tracing program for viewing a scene interactively. |
2091 |
|
When the user specifies a new perspective, rvu quickly displays a rough image on the terminal, |
2092 |
|
then progressively increases the resolution as the user looks on. |
2093 |
|
He can select a particular section of the image to improve, or move to a different view and start over. |
2123 |
|
or converted a standard image format using one of the following |
2124 |
|
<b>translators</b>: |
2125 |
|
<ul> |
2126 |
< |
<li> <b>Ra_avs</b> |
2127 |
< |
converts to and from AVS image format. |
1793 |
< |
<li> <a HREF="../man_html/ra_pict.1.html"><b>Ra_pict</b></a> |
1794 |
< |
converts to Macintosh 32-bit PICT2 format. |
2126 |
> |
<li> <a HREF="../man_html/ra_bmp.1.html"><b>Ra_bmp</b></a> |
2127 |
> |
converts to and from BMP image format. |
2128 |
|
<li> <a HREF="../man_html/ra_ppm.1.html"><b>Ra_ppm</b></a> |
2129 |
|
converts to and from Poskanzer Portable Pixmap formats. |
1797 |
– |
<li> <a HREF="../man_html/ra_pr.1.html"><b>Ra_pr</b></a> |
1798 |
– |
converts to and from Sun 8-bit rasterfile format. |
1799 |
– |
<li> <a HREF="../man_html/ra_pr24.1.html"><b>Ra_pr24</b></a> |
1800 |
– |
converts to and from Sun 24-bit rasterfile format. |
2130 |
|
<li> <a HREF="../man_html/ra_ps.1.html"><b>Ra_ps</b></a> |
2131 |
|
converts to PostScript color and greyscale formats. |
2132 |
|
<li> <a HREF="../man_html/ra_rgbe.1.html"><b>Ra_rgbe</b></a> |
2152 |
|
<pre> |
2153 |
|
The Radiance Software License, Version 1.0 |
2154 |
|
|
2155 |
< |
Copyright (c) 1990 - 2010 The Regents of the University of California, |
2155 |
> |
Copyright (c) 1990 - 2021 The Regents of the University of California, |
2156 |
|
through Lawrence Berkeley National Laboratory. All rights reserved. |
2157 |
|
|
2158 |
|
Redistribution and use in source and binary forms, with or without |
2200 |
|
SUCH DAMAGE. |
2201 |
|
</pre> |
2202 |
|
|
2203 |
+ |
<p> |
2204 |
+ |
|
2205 |
|
<hr> |
2206 |
|
|
2207 |
|
<h2> |
2227 |
|
</h2> |
2228 |
|
<p> |
2229 |
|
<ul> |
2230 |
+ |
<li>Ward, Gregory J., Bruno Bueno, David Geisler-Moroder, |
2231 |
+ |
Lars O. Grobe, Jacob C. Jonsson, Eleanor |
2232 |
+ |
S. Lee, Taoning Wang, Helen Rose Wilson, |
2233 |
+ |
"<a href="https://doi.org/10.1016/j.enbuild.2022.111890">Daylight |
2234 |
+ |
Simulation Workflows Incorporating Measured Bidirectional |
2235 |
+ |
Scattering Distribution Functions</a>" |
2236 |
+ |
<em>Energy & Buildings</em>, Vol. 259, No. 11890, 2022. |
2237 |
+ |
<li>Wang, Taoning, Gregory Ward, Eleanor Lee, |
2238 |
+ |
"<a href="https://authors.elsevier.com/a/1XQ0a1M7zGwT7v">Efficient |
2239 |
+ |
modeling of optically-complex, non-coplanar exterior shading: |
2240 |
+ |
Validation of matrix algebraic methods</a>" |
2241 |
+ |
<em>Energy & Buildings</em>, vol. 174, pp. 464-83, Sept. 2018. |
2242 |
+ |
<li>Lee, Eleanor S., David Geisler-Moroder, Gregory Ward, |
2243 |
+ |
"<a href="https://eta.lbl.gov/sites/default/files/publications/solar_energy.pdf">Modeling |
2244 |
+ |
the direct sun component in buildings using matrix |
2245 |
+ |
algebraic approaches: Methods and |
2246 |
+ |
validation</a>," <em>Solar Energy</em>, |
2247 |
+ |
vol. 160, 15 January 2018, pp 380-395. |
2248 |
+ |
<li>Narain, Rahul, Rachel A. Albert, Abdullah Bulbul, |
2249 |
+ |
Gregory J. Ward, Marty Banks, James F. O'Brien, |
2250 |
+ |
"<a href="http://graphics.berkeley.edu/papers/Narain-OPI-2015-08/index.html">Optimal |
2251 |
+ |
Presentation of Imagery with Focus |
2252 |
+ |
Cues on Multi-Plane Displays</a>," |
2253 |
+ |
<em>SIGGRAPH 2015</em>. |
2254 |
+ |
<li>Ward, Greg, Murat Kurt, and Nicolas Bonneel, |
2255 |
+ |
"<a href="papers/WMAM14_Tensor_Tree_Representation.pdf">Reducing |
2256 |
+ |
Anisotropic BSDF Measurement to Common Practice</a>," |
2257 |
+ |
<em>Workshop on Material Appearance Modeling</em>, 2014. |
2258 |
+ |
<li>Banks, Martin, Abdullah Bulbul, Rachel Albert, Rahul Narain, |
2259 |
+ |
James F. O'Brien, Gregory Ward, |
2260 |
+ |
"<a href="http://graphics.berkeley.edu/papers/Banks-TPO-2014-05/index.html">The |
2261 |
+ |
Perception of Surface Material from Disparity and Focus Cues</a>," |
2262 |
+ |
<em>VSS 2014</em>. |
2263 |
+ |
<li>McNeil, A., C.J. Jonsson, D. Appelfeld, G. Ward, E.S. Lee, |
2264 |
+ |
"<a href="http://gaia.lbl.gov/btech/papers/4414.pdf"> |
2265 |
+ |
A validation of a ray-tracing tool used to generate |
2266 |
+ |
bi-directional scattering distribution functions for |
2267 |
+ |
complex fenestration systems</a>," |
2268 |
+ |
<em>Solar Energy</em>, 98, 404-14, |
2269 |
+ |
November 2013. |
2270 |
|
<li>Ward, G., R. Mistrick, E.S. Lee, A. McNeil, J. Jonsson, |
2271 |
|
"<a href="http://gaia.lbl.gov/btech/papers/4414.pdf">Simulating |
2272 |
|
the Daylight Performance of Complex Fenestration Systems |
2273 |
|
Using Bidirectional Scattering Distribution Functions within |
2274 |
|
Radiance</a>," |
2275 |
< |
<em>Journal of the Illuminating Engineering Soc. of North America</em>, |
2275 |
> |
<em>Leukos</em>, 7(4) |
2276 |
|
April 2011. |
2277 |
|
<li>Cater, Kirsten, Alan Chalmers, Greg Ward, |
2278 |
|
"<a href="http://www.anyhere.com/gward/papers/egsr2003.pdf">Detail to Attention: |