-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathainodes.py
77 lines (67 loc) · 1.19 KB
/
ainodes.py
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
''' Pre-determined scene db data '''
from arnold import *
# A list of pre-defined distant light matrices to be used in the scene
distant_lights_matrix = {
'top_light': AtMatrix(
1, 0, 0, 0,
0, 2.22044605, -1, 0,
0, 1, 2.22044605, 0,
0, 0, 0, 1
),
'key_light': AtMatrix(
0.707106769, -5.55111512, -0.707106769, 0,
-0.5, 0.707106769, -0.5, 0,
0.5, 0.707106769, 0.5, 0,
0, 0, 0, 1
),
'rim_light': AtMatrix(
-0.707106769,0,0.707106769,0,
-0.241844758,0.939692616,-0.241844758,0,
-0.664463043,-0.342020154,-0.664463043,0,
0, 0, 0, 1
)
}
# Fixed camera matrix
cam_matrix = AtMatrix(
1, 0, 0, 0,
0, 1, 0, 0,
0, 0, 1, 0,
0, 0, 6, 1
)
options = {
'AA_samples': 3,
'outputs': '"RGBA RGBA gfilter tiffdriver"',
'xres':720,
'yres':486
}
camera = {
'name':'main_camera',
'fov':45.0,
'matrix':cam_matrix
}
driver_tiff = {
'name':'tiffdriver',
'filename':'"image.tif"',
}
gaussian_filter = {
'name':'gfilter',
'width':2.0
}
standard_shader = {
'name':'stdshader',
'Kd': 1.0,
'Kd_color': [1, 1, 1],
'Ks': 1.0,
'Ks_color': [1,1,1],
'specular_roughness' : 0.7
}
prims = [
{
'sphere':
{
'center': [0,0,0],
'radius': 1,
'shader': 'stdshader'
}
}
]