-
Notifications
You must be signed in to change notification settings - Fork 0
/
scene.txt
106 lines (87 loc) · 1.69 KB
/
scene.txt
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
96
97
98
99
100
101
102
103
104
105
106
4
768
6
sphere
40.0 0.0 10.0
10.0
0.0 1.0 0.0
0.4 0.2 0.2 0.2
10
sphere
-30.0 60.0 20.0
20.0
0.0 0.0 1.0
0.2 0.2 0.4 0.2
15
sphere
-15.0 15.0 45.0
15.0
1.0 1.0 0.0
0.4 0.3 0.1 0.2
5
triangle
50 30 0
70 60 0
50 45 50
1.0 0.0 0.0
0.4 0.2 0.1 0.3
5
triangle
70 60 0
30 60 0
50 45 50
0.0 1.0 0.0
0.4 0.2 0.1 0.3
5
triangle
30 60 0
50 30 0
50 45 50
0.0 0.0 1.0
0.4 0.2 0.1 0.3
5
4
70.0 70.0 70.0
1.0 0.0 0.0
-70 70 70
0.0 0.0 1.0
70 -70 70
1 0 0.0
-70 -70 70
0 1.0 0
Input explanation:
4 level of recursion
768 pixels along both dimensions
8 objects
sphere
40.0 0.0 10.0 - center
10.0 - radius
0.0 1.0 0.0 - color
0.4 0.2 0.2 0.2 - ambient, diffuse, specular, recursive reflection coefficient
5 - shininess
triangle
-20.0 -20.0 0.0 - x1, y1, z1
20.0 -20.0 0.0 - x2, y2, z2
0.0 0.0 20.0 - x3, y3, z3
1.0 0.0 0.0 - color
0.4 0.2 0.1 0.3 - ambient, diffuse, specular, recursive reflection coefficient
5 - shininess
general
1 1 1 0 0 0 -20 -20 -20 200 - A B C D E F G H I J
0 0 0 0 0 5 - cube reference point, length, width, height (0 indicates no clipping along this dimension)
0.0 0.0 1.0 - color
0.4 0.2 0.1 0.3 - ambient, diffuse, specular, recursive reflection coefficient
3 - shininess
4 light sources
70.0 70.0 70.0 - position of the 1st light source
1.0 0.0 0.0 - color of the 1st light source
-70 70 70 - position of the 2nd light source
0.0 0.0 1.0 - color of the 2nd light source
70 -70 70 - position of the 3rd light source
1 0 0.0 - color of the 3rd light source
-70 -70 70 - position of the 4th light source
0 1.0 0 - color of the 4th light source
There will be a floor along the XY-plane
FloorWidth can be 1000 (from origin 500 across each side)
Each Tile Width can be 20
Color should be alternating