-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
95 lines (67 loc) · 2.2 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
To build for the first time, one can just run `make` Once make has been run on
this directory, it will clobber the usual makeile, to rebuild the project on a
different computer/architecture run:
$ cmake .
$ make
----
To execute, run:
src/render -input OBJECT -output IMAGE [OPTIONS]...
Where the options are:
-size W H
Sets width and height of image.
W and H are integer values.
Default is (100, 100).
-num_shadow_samples N
Sets the number of times each ray will sample a
shadow.
Default is 0.
-num_bounces N
Sets the number of times the ray can reflect off of
a reflective surface.
Default is 0.
-num_glossy_samples N
Sets the number of times each ray will sample a
glossy surface.
Default is 0.
-background_color R G B
Sets the background color, using the red, green,
and blue values.
R, G, and B are float values, betweeon 0 and 1.
Default is (1, 1, 1).
-cam_pos X Y Z
Sets the camera position.
X, Y, and Z are float values.
-cam_dir X Y Z
Sets the coordinates where the camera will be facing.
For example, if X, Y, and Z are 0's, the camera will
be looking at the center of the mesh.
X, Y, and Z are float values.
Note: if -cam_pos and -cam_dir are at the same coord-
inates, the camera will be placed at a default
position.
-cam_ori X Y Z
Sets the camera's angle.
X, Y, and Z are float values.
Default is (0, 1, 0).
-gray R G B
Turns the image into a gray-scale instead of color.
R, G, and B sets the weight of each color's
contribution in shading.
R, G, and B are positive float values.
For "normal" gray-shading, use (0, 0, 0).
-npr R G B
Filters red, green, and blue colors to output
only a limited range.
If a parameter is set to a value less than 0, or
greater than 255, the full color spectrum is used.
Ex: -npr -1 0 0 will output a red-scale of the
3D model
If a parameter is set to a value between 0 and 1,
the color will be outputed as a single shade.
Ex: -npr 1 0 0 will output a pure red image.
If a parameter is set to a values between 1 and 255,
the value sets the number of shades possible for
that color (including black).
Ex: -npr 3 0 0 will output 3 different shades of red.
R, G, and B are float values.
Default is (-1, -1, -1) (no NPR).