JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
started ship in the middle vertically (instead of the top of the ship in the middle)
[vor.git] / ship.pov
1 #include "colors.inc"
2 #include "metals.inc"
3
4 #ifndef(xr)
5         #declare xr = 0;
6 #end
7
8 #ifndef(yr)
9         #declare yr = 0;
10 #end
11
12 #declare r = 2.0;
13 #declare r2 = 2.01;
14 #declare cr = 1/16;
15
16 camera {
17         up <0, 1, 0>
18         right <1, 0, 0>
19         location <0, 0, -r/sin(radians(15))>
20         angle 30
21         look_at <0, 0, 0>
22 }
23 light_source { <-500, 500, -700> White }
24
25 #declare xring = intersection {
26         difference {
27                 sphere { 0, r }
28                 sphere { 0, r-cr }
29         }
30         box { <-0.25, -r2, -r2>, <0.25, r2, r2> }
31 }
32
33 #declare yring = intersection {
34         difference {
35                 sphere { 0, r }
36                 sphere { 0, r-cr }
37         }
38         box { <-r2, -0.25, -r2>, <r2, 0.25, r2> }
39 }
40
41 #declare zring = intersection {
42         difference {
43                 sphere { 0, r }
44                 sphere { 0, r-cr }
45         }
46         box { <-r2, -r2, -0.25>, <r2, r2, 0.25> }
47 }
48
49
50 union {
51         sphere { 0, r-0.1 }
52         intersection {
53                 sphere { 0, r-0.09 }
54                 box { <0, 0, -r2>, <r2, r2, r2> }
55                 pigment { rgbf < 0.5, 0.75, 0.5, 0.6 > }
56         }
57         object { xring }
58         object { yring }
59         texture {
60                 pigment { rgb < 0.75, 0.75, 1.0 > }
61                 finish {
62                         ambient 0.35
63                         brilliance 2
64                         diffuse 0.3
65                         metallic
66                         specular 0.6
67                         roughness 1/60
68                         reflection 0.25
69                 }
70                 normal { bumps 0.1 scale 0.25 }
71         }
72
73         rotate <xr*360/32, 0, 0>
74         rotate <0, yr*360/32, 0>
75 }