ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/doc/man/man1/bsdf2rad.1
Revision: 1.1
Committed: Fri Aug 11 21:39:52 2017 UTC (7 years, 8 months ago) by greg
Branch: MAIN
CVS Tags: rad5R1
Log Message:
Created bsdfview script and added man page for bsdf2rad

File Contents

# Content
1 .\" RCSid "$Id: objview.1,v 1.5 2014/04/16 20:48:07 greg Exp $"
2 .TH BSDF2RAD 1 8/11/2017 RADIANCE
3 .SH NAME
4 bsdf2rad - create a RADIANCE visualization of a BSDF representation
5 .SH SYNOPSIS
6 .B bsdf2rad
7 bsdf.xml
8 .br
9 or
10 .br
11 .B bsdf2rad
12 hemi1.sir
13 [
14 hemi2.sir ..
15 ]
16 .br
17 .SH DESCRIPTION
18 .I Bsdf2rad
19 takes a bidirectional scattering distribution function (BSDF)
20 and plots it as a RADIANCE scene file.
21 In the first form,
22 .I bsdf2rad
23 takes a single XML file representing a Klems or tensor tree, plotting
24 as many scattering hemispheres as are present in the file.
25 In the second form,
26 .I bsdf2rad
27 takes up to four scattering interpolation representation (SIR) files,
28 each depicting the BSDF from one side of one incident hemisphere,
29 and plots them together.
30 An XML BSDF description may be imported from outside RADIANCE, or
31 produced by
32 .I genBSDF(1),
33 .I bsdf2klems(1),
34 or
35 .I bsdf2ttree(1).
36 (A program that produces SIR files is
37 .I pabopto2bsdf(1).)\0
38 .PP
39 The output of
40 .I bsdf2rad
41 is a RADIANCE scene that contains a selection of 3-D plots showing
42 the given material's reflection and transmission scattering.
43 This description is normally sent to
44 .I oconv(1)
45 to create an octree for rendering using
46 .I rad(1),
47 .I rvu(1),
48 or
49 .I rpict(1).
50 .PP
51 To the right (+X) of the scene, the front incident hemisphere will be plotted.
52 To the left (-X) of the scene, the back incident hemisphere will be plotted.
53 Depending on the input, only one or the other hemisphere may be present.
54 In the case of an XML input, the hemispheres will be made of the specified
55 BSDF material, and the scene
56 will include a single (distant) light source shining straight
57 down from overhead (+Z direction).
58 .PP
59 Pink arrows will indicate the "through" (view) and "mirror"
60 (specular reflection) directions for each scatter plot.
61 The logarithmic scale of the BSDF plots themselves will be determined
62 automatically by the data and shown in a legend that lies between the
63 two hemisphere, or to the side if there is only one.
64 The incident direction may be read from the position of
65 each plot, where hemisphere grid lines are separated by
66 15 degree increments in the polar (theta, latitude) angle, and by
67 30 degree increments in the azimuthal (phi, longitude) angle.
68 The center (+Z) of each hemisphere corresponds to normal incidence,
69 and the right (+X) direction corresponds to a zero phi angle.
70 Positive phi is read counter-clockwise from above,
71 and a phi of 90 degrees (+Y) typically corresponds
72 to a material's "up" orientation.
73 .SH EXAMPLE
74 To view a BSDF XML representation:
75 .IP "" .2i
76 bsdf2rad cloth.xml | oconv - > cloth.oct
77 .br
78 rvu -vp 0 -50 50 -vd 0 50 -50 -vh 45 -vv 30 cloth.oct
79 .PP
80 To render an SIR description of a BRDF:
81 .IP "" .2i
82 bsdf2rad front_refl.sir back_refl.sir > refl.rad
83 oconv -f refl.rad | rpict -vf good.vf > refl_good.hdr
84 .SH AUTHOR
85 Greg Ward
86 .SH "SEE ALSO"
87 bsdf2klems(1), bsdf2ttree(1), genBSDF(1),
88 bsdfview(1), oconv(1), pabopto2bsdf(1), rad(1), rpict(1), rvu(1)