home *** CD-ROM | disk | FTP | other *** search
- .TH RAD(1)
- .SH NAME
- rad - a tool for computing global illumination by equilibrium based methods.
- .SH SYNOPSIS
- .B "rad \[ options \] picture_file"
-
- ex:
- rad -b 30 room.pic < room.dat
- or
- rad -p 1000 -b 30 room.pic < room.dat
- .SH OPTIONS
- .I -v.
- Verbose output to STDERR showing execution status.
- Default is silent execution.
-
- .I -p npasses.
- To carry out progressive radiosity with
- .I npasses
- number of light distribution steps.
- The distribution starts with the most bright emitter patch and
- continues with the next bright patches.
-
- .I -P RayTrace/Scan.
- To carry out the hemicube projection by raytracing or by scan
- conversion. Default projection is by scan conversion.
-
- .I -s Flat/Gouraud.
- To carry out Flat or Gouraud shading. The default shading is
- Gouraud shading, i.e. the intensity at any point is bilinearly
- interpolated from the values at the corners of the patch.
-
- .I -o intensity_file.
- The computed normalised illumination is stored in the intensity file.
-
- .I -i intensity_file.
- Precomputed normalised illumination values are to be read from the
- intensity file.
- .I rad
- can proceed with the rendering immediately. This option is
- very useful for creating images from different view and for
- creating images with different brightness control as it
- bypasses the global illumination computation step.
-
- .I -b brightnessfactor.
- It gives a brightness multiplication factor to be multiplied
- with the intensity value of the pixel at the rendering time.
- Default factor is 1. Often it is necessary to provide a
- value other than one to generate a resonably bright picture.
-
- .I -H hemicube_resolution.
- It allows the user to control the resolution of the hemicube
- faces. Higher the resolution more accurate the hemicube projection
- but more time consuming. If the value specified as
- hemicube_resolution is nnn then the top face of the hemicube
- is discretised to nnn x nnn cells, and the side faces are
- discretised to nnn x (nnn div 2) cells.
- The default hemicube_resolution has been specified
- in a #define statement /*#define Hemicube_Resolution nnn */
- in distrib/radiosity/src/main.c . User may set this default
- value to his/her choice at the time of producing the executable.
-
- .I -f RLE/RADIANCE/SUNRASTER/RAW/TEXT.
- To choose the image format form one of the five supported
- currently. These are UTAH-RLE format, Radiance Image format,
- SunRaster (Raw) format, Raw Binary format and ASCII format.
- Compile time option of -DRLE or -DRADIANCE or -DSUNRASTER or
- -DRAW or -DTEXT decides on the default image format.
- At present pictures are created in RLE image format.
- Users may change to one of the other four to suit their need.
- .SH DESCRIPTION
- .I rad
- is a tool for computing global illumination of a complex 3D scene
- by energy equilibrium based method
- either using full matrix solution or using progressive distribution
- of the light energy.
-
- .I Geometry :
-
- The scene may be composed of any valid combination of
- Polygons, spheres, cylinders, cones and discs.
-
- .I Surface Property :
-
- A surface is assumed to be opaque with diffuse or mirror
- reflection property and/or diffuse emission property.
-
- .I Form Factor :
-
- Hemicube projection is carried out for the
- computation of the form factor between the surface patches. A
- hemicube is erected at the centre of the patch of interest.
- Projection is carried out either by scan conversion of
- polygons/polygonal approximation of the surface patches or by
- tracing rays from the centre of the patch through the centre
- of the hemicube cells.
-
- However, in the presence of mirror surfaces the modified form
- factor of the diffuse surface is computed by tracing ray
- through those hemicube cells occupied by the mirror surfaces
- and reflecting them till a diffuse surface is reached.
-
- .I Subdivision of surface to patches :
-
- Each surface is divided into a number of patches as specified in
- the input specification. This specification is in terms of a
- n x m grid. For this subdivision it is assumed that a surface
- can be defined as a parametric space with u and v parameter
- extents from 0 to 1.
- .I n
- is the number of equal subdivision of the u parametric curve
- and
- .I m
- is the number of equal subdivisions of the v paramertic curve.
- All surface geometries except arbitrary polygons can be
- conveniently represented as parametric surfaces and hence
- hence pose no problem for subdivision.
-
- At present no subdivision of the arbitrary polygonal surface
- is supported. The hemicube is raised at any arbitrary vertex
- of such surface. In a future version, a breakup of the surface
- by triangulation will be attempted
-
- The uniform subdivision of the u-v space in most cases does
- not give equal area surfaces. However, because of a lot of
- computational convenience resulting because of uniform
- subdivision, the author is reluctant to make any changes to his
- approach of subdivision now.
-
- .I Rendering :
-
- Visibility through each pixel is carried out by ray-tracing
- and intensity at the visible point on the scene surfaces is
- computed as to be the intensity of the patch to which the
- point belongs or optionally computed by bilinear interpolation
- of the intensity at the patch vertices.
-
- .I Rad
- provides facilities to generate images in a number of output
- formats. These are Radiance Picture Format, UTAH Rle format,
- SunRaster picture format, raw binary format and
- ASCII format.
-
- .I View Parameters :
-
- Viewing parameters for rendering is specified in the begining
- of the input file. Two different view types are supported.
- 1) Perspective View 2) Special View. For details on the
- special view specification user may refer to input.format.doc
- in directory distrib/radiosity/doc. Perspective view
- specification is simple and parameters are as follows:
- View Type : v
- Image Resolution : <xreso, yreso>
- Eye Point : <x,y,z>
- view Plane Normal : <dx,dy,dy>
- view up vector : <dx,dy,dz>
- horiz field of view : <angle>
- vert field of view : <angle>
-
- .I Hard Coded Parameters :
-
- Following hard coded parameters may be manipulated by the user
- before carrying out the tool installation.
-
- .I Maximum Color Channels :
- At present maximum 3 color channels are supported and is
- controlled by
- "#define MAXCHANNELS 3"
- in the file "data_structure.h".
- It can be changed to any nonzero positive value.
-
- .I Maximum Number of Emitter Surfaces :
- At present the maximum number of emitters supported is 10.
- This value is controlled by
- "#define MAXSOURCES 10"
- in the file "data_structure.h". It may be changed to any
- nonzero positive value.
-
- .I Compile Time Options :
-
- The only option is the choice of default image format.
- The compile time options are
- -DRADIANCE for Radiance Image format,
- -DRLE for UTAH RLE format (it additionally requires
- librle.a, the UTAH library, at the linking time.),
- -DSUNRASTER for SunRaster format and
- -DRAW for raw binary format.
- In the absence of any such options the output is generated in
- printable ASCII format.
-
- .BI IMPORTANT
-
- A full matrix solution for any reasonably complicated scene
- requires a very high amount of memory and hence
- .I rad
- may refuse to proceed with full matrix solutions in environments
- with memory limitations. So users may resort to computation by
- progressive distribution (-p Option).
-
- .SH AUTHOR
- Sumant N. Pattanaik
- .SH "SEE ALSO"
- radfilter(1)
-