1// Persistence Of Vision raytracer version 3.5 sample file.
2// Woods.inc demonstration on cubes.  Faster than woods2.pov but
3// doesn't give as good an idea of how the textures look on other
4// shapes.
5//
6// -w320 -h240
7// -w800 -h600 +a0.3
8
9global_settings { assumed_gamma 2.2 }
10
11// Set default finish for wood textures before including the file
12#default { finish { specular 0.15 roughness 0.025 ambient 0.25 } }
13
14#include "colors.inc"
15#include "woods.inc"
16
17camera {
18   location <0, 30, -47>
19   direction <0, 0,  3.0>
20   right x*1.33
21   look_at 3*y
22}
23
24light_source {<-50, 50, -1000> color Gray75}
25light_source {< 15, 30, -10> color White}
26
27background { color Gray30 }
28
29#declare Thing =
30box {-1, 1 scale <1, 2, 1> translate y * 2
31   no_shadow
32}
33
34#declare T01 = texture { T_Wood1  rotate x*90 }
35#declare T02 = texture { T_Wood2  rotate x*90 }
36#declare T03 = texture { T_Wood3  rotate x*90 }
37#declare T04 = texture { T_Wood4  rotate x*90 }
38#declare T05 = texture { T_Wood5  rotate x*90 }
39
40#declare T06 = texture { T_Wood6  rotate x*90 }
41#declare T07 = texture { T_Wood7  rotate x*90 }
42#declare T08 = texture { T_Wood8  rotate x*90 }
43#declare T09 = texture { T_Wood9  rotate x*90 }
44#declare T10 = texture { T_Wood10 rotate x*90 }
45
46#declare T11 = texture { T_Wood11  rotate x*90 }
47#declare T12 = texture { T_Wood12  rotate x*90 }
48#declare T13 = texture { T_Wood13  rotate x*90 }
49#declare T14 = texture { T_Wood14 rotate x*90 }
50#declare T15 = texture { T_Wood15 rotate x*90 }
51
52#declare T16 = texture { T_Wood16 rotate x*90 }
53#declare T17 = texture { T_Wood17 rotate x*90 }
54#declare T18 = texture { T_Wood18 rotate x*90 }
55#declare T19 = texture { T_Wood19 rotate x*90 }
56#declare T20 = texture { T_Wood20 rotate x*90 }
57
58#declare T21 = texture { T_Wood21 rotate x*90 }
59#declare T22 = texture { T_Wood22 rotate x*90 }
60#declare T23 = texture { T_Wood23 rotate x*90 }
61#declare T24 = texture { T_Wood24 rotate x*90 }
62#declare T25 = texture { T_Wood25 rotate x*90 }
63
64#declare T26 = texture { T_Wood26 rotate x*90 }
65#declare T27 = texture { T_Wood27 rotate x*90 }
66#declare T28 = texture { T_Wood28 rotate x*90 }
67#declare T29 = texture { T_Wood29 rotate x*90 }
68#declare T30 = texture { T_Wood30 rotate x*90 }
69
70#declare T31 = texture { T_Wood31 rotate x*90 }
71#declare T32 = texture { T_Wood32 rotate x*90 }
72#declare T33 = texture { T_Wood33 rotate x*90 }
73#declare T34 = texture { T_Wood34 rotate x*90 }
74#declare T35 = texture { T_Wood35 rotate x*90 }
75
76
77
78#declare Height = 1;
79
80#declare Dist1 =  -8;
81#declare Dist2 =  -4;
82#declare Dist3 =   0;
83#declare Dist4 =   4;
84#declare Dist5 =   8;
85#declare Dist6 =  12;
86#declare Dist7 =  16;
87
88#declare Col1 =  -8;
89#declare Col2 =  -4;
90#declare Col3 =   0;
91#declare Col4 =   4;
92#declare Col5 =   8;
93
94// 1st row, left to right
95union {
96object { Thing texture{T01} translate <Col1 Height Dist1 >}
97object { Thing texture{T02} translate <Col2 Height Dist1 >}
98object { Thing texture{T03} translate <Col3 Height Dist1 >}
99object { Thing texture{T04} translate <Col4 Height Dist1 >}
100object { Thing texture{T05} translate <Col5 Height Dist1 >}
101translate -x
102}
103
104// 2nd row, left to right
105union {
106object { Thing texture{T06} translate <Col1 Height Dist2 >}
107object { Thing texture{T07} translate <Col2 Height Dist2 >}
108object { Thing texture{T08} translate <Col3 Height Dist2 >}
109object { Thing texture{T09} translate <Col4 Height Dist2 >}
110object { Thing texture{T10} translate <Col5 Height Dist2 >}
111translate  x
112}
113
114// 3rd row, left to right
115union {
116object { Thing texture{T11} translate <Col1 Height Dist3 >}
117object { Thing texture{T12} translate <Col2 Height Dist3 >}
118object { Thing texture{T13} translate <Col3 Height Dist3 >}
119object { Thing texture{T14} translate <Col4 Height Dist3 >}
120object { Thing texture{T15} translate <Col5 Height Dist3 >}
121translate -x
122}
123
124// 4th row, left to right
125union {
126object { Thing texture{T16} translate <Col1 Height Dist4 >}
127object { Thing texture{T17} translate <Col2 Height Dist4 >}
128object { Thing texture{T18} translate <Col3 Height Dist4 >}
129object { Thing texture{T19} translate <Col4 Height Dist4 >}
130object { Thing texture{T20} translate <Col5 Height Dist4 >}
131translate  x
132}
133
134// 5th row, left to right
135union {
136object { Thing texture{T21} translate <Col1 Height Dist5 >}
137object { Thing texture{T22} translate <Col2 Height Dist5 >}
138object { Thing texture{T23} translate <Col3 Height Dist5 >}
139object { Thing texture{T24} translate <Col4 Height Dist5 >}
140object { Thing texture{T25} translate <Col5 Height Dist5 >}
141translate -x
142}
143
144// 6th row, left to right
145union {
146object { Thing texture{T26} translate <Col1 Height Dist6 >}
147object { Thing texture{T27} translate <Col2 Height Dist6 >}
148object { Thing texture{T28} translate <Col3 Height Dist6 >}
149object { Thing texture{T29} translate <Col4 Height Dist6 >}
150object { Thing texture{T30} translate <Col5 Height Dist6 >}
151translate x
152}
153
154// 7th row, left to right
155union {
156object { Thing texture{T31} translate <Col1 Height Dist7 >}
157object { Thing texture{T32} translate <Col2 Height Dist7 >}
158object { Thing texture{T33} translate <Col3 Height Dist7 >}
159object { Thing texture{T34} translate <Col4 Height Dist7 >}
160object { Thing texture{T35} translate <Col5 Height Dist7 >}
161translate -x
162}
163
164
165