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

Comparing ray/doc/ray.1 (file contents):
Revision 1.3 by greg, Fri Mar 14 21:27:45 2003 UTC vs.
Revision 1.12 by greg, Fri Jun 1 19:46:07 2007 UTC

# Line 1 | Line 1
1   .\" RCSid "$Id"
2   .\" Print using the -ms macro package
3 < .DA 1/20/99
3 > .DA 10/17/2006
4   .LP
5 < .tl """Copyright \(co 1996 Regents, University of California
5 > .tl """Copyright \(co 2006 Regents, University of California
6   .sp 2
7   .TL
8   The
# Line 10 | Line 10 | The
10   .br
11   Synthetic Imaging System
12   .AU
13 < Greg Ward
13 > Building Technologies Department
14   .br
15   Lawrence Berkeley Laboratory
16   .br
17 < 1 Cyclotron Rd.
17 > 1 Cyclotron Rd., MS 90-3111
18   .br
19   Berkeley, CA  94720
20 .br
21 (510) 486-4757
20   .NH 1
21   Introduction
22   .PP
# Line 49 | Line 47 | which produces a picture from a scene description.
47   is a variation of
48   .I rpict
49   that computes and displays images interactively.
50 + Other programs (not shown) connect many of these elements together,
51 + such as the executive programs
52 + .I rad
53 + and
54 + .I ranimate,
55 + the interactive rendering program
56 + .I rholo,
57 + and the animation program
58 + .I ranimove.
59 + The program
60 + .I obj2mesh
61 + acts as both a converter and scene compiler, converting a Wavefront .OBJ
62 + file into a compiled mesh octree for efficient rendering.
63   .PP
64   A scene description file lists the surfaces and materials
65 < that make up a specific environment.
66 < The current surface types are spheres, polygons, cones,
67 < and cylinders.
68 < They can be made from materials such as plastic, metal,
69 < and glass.
70 < Light sources can be distant disks as well as local spheres, discs and
71 < polygons.
65 > that  make up a specific environment.  
66 > The current surface types are  spheres,  polygons,  cones,  and  cylinders.
67 > There is also a composite surface type, called mesh, and a pseudosurface
68 > type, called instance, which facilitates very complex geometries.
69 > Surfaces can be made from materials such as plastic, metal, and glass.  
70 > Light sources can be distant disks as well as  local spheres, disks
71 > and polygons.
72   .PP
73   From a three-dimensional scene description and a specified view,
74   .I rpict
# Line 84 | Line 95 | It is stored as ASCII text, with the following basic f
95   # comment
96  
97   modifier type identifier
98 < n S1 S2 S3 .. Sn
98 > n S1 S2 "S 3" .. Sn
99   0
100   m R1 R2 R3 .. Rm
101  
# Line 112 | Line 123 | primitives.
123   Thus, the same identifier may be used repeatedly, and each new
124   definition will apply to the primitives following it.
125   .FE
126 < An identifier can be any string (i.e. sequence of non-blank
116 < characters).
126 > An identifier can be any string (i.e., any sequence of non-white characters).
127   The
128   .I arguments
129   associated with a primitive can be strings or real numbers.
130   The first integer following the identifier is the number
131   of string arguments, and it is followed by the arguments themselves
132 < (separated by white space).
132 > (separated by white space or enclosed in quotes).
133   The next integer is the number of integer arguments, and is followed
134   by the integer arguments.
135   (There are currently no primitives that use them, however.)
# Line 142 | Line 152 | confusion will result.
152   A command may be continued over multiple lines using a backslash, `\\',
153   to escape the newline.
154   .PP
155 < Blank space is generally ignored, except as a separator.
155 > White space is generally ignored, except as a separator.
156   The exception is the newline character after a command or comment.
157   Commands, comments and primitives may appear in any combination, so long
158   as they are not intermingled.
# Line 150 | Line 160 | as they are not intermingled.
160   Primitive Types
161   .PP
162   Primitives can be surfaces, materials, textures or patterns.
163 < Modifiers can be materials, textures or patterns.
163 > Modifiers can be materials, mixtures, textures or patterns.
164   Simple surfaces must have one material in their modifier list.
165   .NH 3
166   Surfaces
# Line 223 | Line 233 | mod cone id
233   .LP
234   .UL Cup
235   .PP
236 < A cup is an inverted cone (i.e. has an inward surface normal).
236 > A cup is an inverted cone (i.e., has an inward surface normal).
237   .LP
238   .UL Cylinder
239   .PP
# Line 262 | Line 272 | mod ring id
272   A mesh is a compound surface, made up of many triangles and
273   an octree data structure to accelerate ray intersection.
274   It is typically converted from a Wavefront .OBJ file using the
275 < obj2mesh program.
275 > .I obj2mesh
276 > program.
277   .DS
278   mod mesh id
279   1+ meshfile transform
# Line 283 | Line 294 | permitting very detailed geometries that would otherwi
294   available memory.
295   In addition, the mesh primitive can have associated (u,v) coordinates
296   for pattern and texture mapping.
297 < These are made available to function files via the Lu and Lu variables.
297 > These are made available to function files via the Lu and Lv variables.
298   .LP
299   .UL Instance
300   .PP
# Line 321 | Line 332 | The basic types are given below.
332   .LP
333   .UL Light
334   .PP
335 < Light is the basic material for self-luminous surfaces (i.e. light
335 > Light is the basic material for self-luminous surfaces (i.e., light
336   sources).
337   In addition to the source surface type, spheres, discs (rings with zero
338   inner radius), cylinders (provided they are long enough), and
# Line 381 | Line 392 | Spotlight is used for self-luminous surfaces having di
392   As well as radiance, the full cone angle (in degrees)
393   and orientation (output direction) vector are given.
394   The length of the orientation vector is the distance
395 < of the effective focus behind the source center (i.e. the focal length).
395 > of the effective focus behind the source center (i.e., the focal length).
396   .DS
397   mod spotlight id
398   0
# Line 391 | Line 402 | mod spotlight id
402   .LP
403   .UL Mirror
404   .PP
405 < Mirror is used for planar surfaces that produce secondary
405 > Mirror is used for planar surfaces that produce virtual
406   source reflections.
407   This material should be used sparingly, as it may cause the light
408   source calculation to blow up if it is applied to many small surfaces.
# Line 415 | Line 426 | mod mirror id
426   .UL Prism1
427   .PP
428   The prism1 material is for general light redirection from prismatic
429 < glazings, generating secondary light sources.
430 < It can only be used to modify a planar surface (i.e. a polygon or disk)
429 > glazings, generating virtual light sources.
430 > It can only be used to modify a planar surface (i.e., a polygon or disk)
431   and should not result in either light concentration or scattering.
432   The new direction of the ray can be on either side of the material,
433   and the definitions must have the correct bidirectional properties
434 < to work properly with secondary light sources.
434 > to work properly with virtual light sources.
435   The arguments give the coefficient for the redirected light
436   and its direction.
437   .DS
# Line 569 | Line 580 | direction vector
580   These three expressions (separated by white space) are evaluated in
581   the context of the function file
582   .I funcfile.
583 < If no function file is required (i.e. no special variables or
583 > If no function file is required (i.e., no special variables or
584   functions are required), a period (`.') may be given in its
585   place.
586   (See the discussion of Function Files in the Auxiliary Files section).
# Line 1098 | Line 1109 | which serves as a form of opacity control when used wi
1109   Vname is the coefficient defined in funcfile that determines the influence
1110   of foreground.
1111   The background coefficient is always (1-vname).
1101 Since the references are not resolved until runtime, the last
1102 definitions of the modifier id's will be used.
1103 This can result in modifier loops, which are detected by the
1104 renderer.
1112   .LP
1113   .UL Mixdata
1114   .PP
# Line 1202 | Line 1209 | and they are listed in the file
1209   The following variables are particularly important:
1210   .DS
1211          Dx, Dy, Dz              - incident ray direction
1205        Px, Py, Pz              - intersection point
1212          Nx, Ny, Nz              - surface normal at intersection point
1213 +        Px, Py, Pz              - intersection point
1214 +        T                       - distance from start
1215 +        Ts                      - single ray (shadow) distance
1216          Rdot                    - cosine between ray and normal
1217          arg(0)                  - number of real arguments
1218          arg(i)                  - i'th real argument
1219   .DE
1220 + For mesh objects, the local surface coordinates are available:
1221 + .DS
1222 +        Lu, Lv                  - local (u,v) coordinates
1223 + .DE
1224   For BRDF types, the following variables are defined as well:
1225   .DS
1226          NxP, NyP, NzP           - perturbed surface normal
# Line 1223 | Line 1236 | variables are global, a period (`.') can be given in
1236   place of the file name.
1237   It is also possible to give an expression instead of a straight
1238   variable name in a scene file, although such expressions should
1239 < be kept simple as they cannot contain any white space.
1239 > be kept simple if possible.
1240   Also, functions (requiring parameters)
1241   must be given as names and not as expressions.
1242   .PP
# Line 1413 | Line 1426 | converts to and from Radiance CIE picture format.
1426   .NH 1
1427   License
1428   .PP
1429 < Radiance is a registered copyright of The Regents of the University of
1430 < California ("The Regents"). The Regents grant to you a nonexclusive,
1431 < nontransferable license ("License") to use Radiance source code without fee.
1432 < You may not sell or distribute Radiance to others without the prior express
1433 < written permission of The Regents.
1434 < You may compile and use this software on any machines to which you have
1435 < personal access, and may share its use with others who have access to the
1436 < same machines.
1437 < .PP
1438 < NEITHER THE UNITED STATES NOR THE UNITED STATES DEPARTMENT OF ENERGY, NOR ANY
1439 < OF THEIR EMPLOYEES, MAKES ANY WARRANTY, EXPRESS OR IMPLIED, OR ASSUMES ANY
1440 < LEGAL LIABILITY OR RESPONSIBILITY FOR THE ACCURACY, COMPLETENESS, OR
1441 < USEFULNESS OF ANY INFORMATION, APPARATUS, PRODUCT, OR PROCESS DISCLOSED, OR
1442 < REPRESENTS THAT ITS USE WOULD NOT INFRINGE PRIVATELY OWNED RIGHTS.
1443 < By downloading, using or copying this software, you agree to abide by the
1444 < intellectual property laws and all other applicable laws of the United
1445 < States, and by the terms of this License Agreement. Ownership of the software
1446 < shall remain solely in The Regents.
1447 < The Regents shall have the right to terminate this License immediately by
1448 < written notice upon your breach of, or noncompliance with, any of its terms.
1449 < You shall be liable for any infringement or damages resulting from your
1450 < failure to abide by the terms of this License Agreement.
1451 < .PP
1452 < NOTICE: The Government is granted for itself and others acting on its behalf
1453 < a paid-up, nonexclusive irrevocable worldwide license in this data to
1454 < reproduce, prepare derivative works, and perform publicly and display
1455 < publicly. Beginning five (5) years after permission to assert copyright is
1456 < granted, subject to two possible five year renewals, the Government is
1457 < granted for itself and others acting on its behalf a paid-up, non-exclusive,
1458 < irrevocable worldwide license in this data to reproduce, prepare derivative
1459 < works, distribute copies to the public, perform publicly and display
1460 < publicly, and to permit others to do so.
1429 > .DS
1430 > The Radiance Software License, Version 1.0
1431 >
1432 > Copyright (c) 1990 - 2002 The Regents of the University of California,
1433 > through Lawrence Berkeley National Laboratory.   All rights reserved.
1434 >
1435 > Redistribution and use in source and binary forms, with or without
1436 > modification, are permitted provided that the following conditions
1437 > are met:
1438 >
1439 > 1. Redistributions of source code must retain the above copyright
1440 >        notice, this list of conditions and the following disclaimer.
1441 >
1442 > 2. Redistributions in binary form must reproduce the above copyright
1443 >      notice, this list of conditions and the following disclaimer in
1444 >      the documentation and/or other materials provided with the
1445 >      distribution.
1446 >
1447 > 3. The end-user documentation included with the redistribution,
1448 >          if any, must include the following acknowledgment:
1449 >            "This product includes Radiance software
1450 >                (http://radsite.lbl.gov/)
1451 >                developed by the Lawrence Berkeley National Laboratory
1452 >              (http://www.lbl.gov/)."
1453 >      Alternately, this acknowledgment may appear in the software itself,
1454 >      if and wherever such third-party acknowledgments normally appear.
1455 >
1456 > 4. The names "Radiance," "Lawrence Berkeley National Laboratory"
1457 >      and "The Regents of the University of California" must
1458 >      not be used to endorse or promote products derived from this
1459 >      software without prior written permission. For written
1460 >      permission, please contact [email protected].
1461 >
1462 > 5. Products derived from this software may not be called "Radiance",
1463 >      nor may "Radiance" appear in their name, without prior written
1464 >      permission of Lawrence Berkeley National Laboratory.
1465 >
1466 > THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
1467 > WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
1468 > OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
1469 > DISCLAIMED.   IN NO EVENT SHALL Lawrence Berkeley National Laboratory OR
1470 > ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
1471 > SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
1472 > LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
1473 > USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
1474 > ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
1475 > OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
1476 > OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
1477 > SUCH DAMAGE.
1478 > .DE
1479   .NH 1
1480   Acknowledgements
1481   .PP
# Line 1460 | Line 1491 | the Ecole Polytechnique Federale de Lausanne (EPFL Uni
1491   in Lausanne, Switzerland.
1492   .NH 1
1493   References
1494 + .LP
1495 + Cater, K., A. Chalmers, G. Ward,
1496 + ``Detail to Attention: Exploiting Visual Tasks for Selective Rendering,''
1497 + .I "Eurograhics Symposium on Rendering",
1498 + June 2003.
1499 + .LP
1500 + Ward, G., Elena Eydelberg-Vileshin,
1501 + ``Picture Perfect RGB Rendering Using Spectral Prefiltering and
1502 + Sharp Color Primaries,''
1503 + 13th Eurographics Workshop on Rendering, P. Debevec and
1504 + S. Gibson (Editors), June 2002.
1505 + .LP
1506 + Ward, G. and M. Simmons,
1507 + ``The Holodeck Ray Cache: An Interactive Rendering System for Global
1508 + Illumination in Nondiffuse Environments,''
1509 + .I "ACM Transactions on Graphics,"
1510 + 18(4):361-98, October 1999.
1511 + .LP
1512 + Larson, G.W., H. Rushmeier, C. Piatko,
1513 + ``A Visibility Matching Tone Reproduction Operator for High Dynamic
1514 + Range Scenes,''
1515 + .I "IEEE Transactions on Visualization and Computer Graphics",
1516 + 3(4), 291-306, December 1997.
1517 + .LP
1518 + Ward, G.,
1519 + ``Making Global Illumination User Friendly,''
1520 + .I "Sixth Eurographics Workshop on Rendering",
1521 + proceedings to be published by Springer-Verlag,
1522 + Dublin, Ireland, June 1995.
1523 + .LP
1524 + Rushmeier, H., G. Ward, C. Piatko, P. Sanders, B. Rust,
1525 + ``Comparing Real and Synthetic Images: Some Ideas about Metrics,''
1526 + .I "Sixth Eurographics Workshop on Rendering",
1527 + proceedings to be published by Springer-Verlag,
1528 + Dublin, Ireland, June 1995.
1529   .LP
1530   Ward, G.,
1531   ``The Radiance Lighting Simulation and Rendering System,''

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines