man/man1/rlux.1
author Axel Jacobs <axel@jaloxa.eu>
Sun, 01 Dec 2013 23:21:22 +0000
changeset 42 d98785a7064d
parent 5 7e6b4b31a0b7
permissions -rw-r--r--
ltview: New status
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
     1
.\" RCSid goes here.
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
     2
.TH "RLUX" "1" "16/01/2011" "RADIANCE" ""
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
     3
.SH "NAME"
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
     4
rlux \- compute illuminance from ray origin and direction
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
     5
.SH "SYNOPSIS"
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
     6
.B rlux
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
     7
[
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
     8
.B rtrace args
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
     9
]
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    10
.B octree
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    11
.SH "DESCRIPTION"
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    12
The
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    13
.I ximage
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    14
command can output certain information about the pixel under the cursor.
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    15
This is configurable with the 
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    16
.I \-o
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    17
command line option. The default setting is \-ood, which outputs
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    18
the ray origin and ray direction. This output can be directly passed to
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    19
.I rtrace
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    20
which, in combination, with the original octree that the image was rendered
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    21
from, can compute the irradiance at this pixel for the red, green and blue channels.
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    22
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    23
This is essentially what
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    24
.I rlux
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    25
does, but it additionally converts the RGB irradiance output from
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    26
.I rtrace,
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    27
which is in W/m2/sr, into the corresponding illuminance, given in lux.
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    28
.SH "EXAMPLES"
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    29
To calculate the RGB irradiance for a certain pixel in an HDR picture
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    30
.IP "" .2i
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    31
ximage nice.hdr | rtrace \-i+ \-dv \-h\- \-ab 3 scene.oct
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    32
.PP 
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    33
Now left\-click on a pixel and press the 't' key in ximage, or middle\-click.
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    34
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    35
To do the same, but output the illuminance
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    36
.IP "" .2i
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    37
ximage nice.hdr | rtrace \-i+ \-dv \-h\- \-ab 3 scene.oct | rcalc \-e '$1=47.4*$1+120*$2+11.6*$3' \-u
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    38
.PP 
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    39
To let rlux do all the work. This is equivalent to the previous example.
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    40
.IP "" .2i
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    41
ximage nice.hdr | rlux \-ab 3 scene.oct
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    42
.SH "SEE ALSO"
7e6b4b31a0b7 Added rlux man page
Axel Jacobs <axel@jaloxa.eu>
parents:
diff changeset
    43
ximage(1), rtrace(1), rcalc(1)