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
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
| /*
* Copyright Kristopher Reese (kReese.net)
* Created: May 2006
* For Educational Purposes Only. Not for reproduction.
*
*/
#include "colors.inc"
#include "stars.inc"
#include "metals.inc"
//DECLARE Textures for various Objects
#declare CloudArea = texture {
pigment {
bozo
turbulence 1
octaves 10
omega 0.6
lambda 6
color_map {
[0.0 0.1 color rgbt <0.85, 0.85, 0.85, 0.15>
color rgbt <0.75, 0.75, 0.75, 0.15>]
[0.1 0.5 color rgbt <0.75, 0.75, 0.75, 0.15>
color rgbt <1, 1, 1, 0.25>]
[0.5 1.0 color rgbt <1, 1, 1, 1>
color rgbt <1, 1, 1, 1>]
}
}
}
#declare Moonsurface = texture {
pigment {
bozo
turbulence 1
octaves 50
omega 0.5
lambda 6
color_map {
[0.0 0.1 color rgbt <0.85, 0.85, 0.85, 0.15>
color rgbt <0.75, 0.75, 0.75, 0.15>]
[0.1 0.5 color rgbt <0.75, 0.75, 0.75, 0.15>
color rgbt <1, 1, 1, 0.25>]
[0.5 1.0 color rgbt <1, 1, 1, 1>
color rgbt <1, 1, 1, 1>]
}
}
}
//DECLARE Objects for rendering
#declare planet = object {
sphere {
<0, 0, 0>, 1
pigment { color rgb <0, 0, 1> }
pigment{
bozo
turbulence 1
octaves 6
omega 0.7
lambda 2
color_map {
[0.0 0.1 color rgb <0, 1, 0>
color rgb <0, 1, 0>]
[0.1 0.5 color rgb <0, 1, 0>
color rgb <0, 1, 0>]
[0.5 1.0 color rgb <0, 0, 1>
color rgb <0, 0, 1>]
}
}
texture {CloudArea}
}
}
#declare Moon = object {
sphere {
<0, 0, 0>, 1
pigment {color rgb <1, 1, 1>}
texture {Moonsurface}
}
}
#declare Alien = object {
difference{
lathe {
linear_spline
7, <0, 2.5>, <3, 2>, <4, 1>, <6, 0>, <4, -1>, <3, -2>, <0, -2.5>
texture {T_Chrome_4A}
}
sphere {
<0, 3, 0>, 3
texture {T_Brass_3A}
}
sphere {
<0, -3, 0>, 3
texture {T_Brass_3A}
}
}
}
//DRAW image from Declared Items
camera {
location <0, 0, -3>
look_at <0, 0, 0>
angle 80
}
light_source { <5, 3, -5> White }
plane {
z, 5
texture {Starfield1}
}
object {
planet
translate <-1, 0, 0>
}
object {
Moon
scale <0.3, 0.29, 0.3>
translate <1, 1, 1>
}
object {
Moon
scale <0.15, 0.15, 0.15>
translate <0, 0, -2.2>
rotate <0, 0, 50>
}
object {
Alien
scale <0.1, 0.1, 0.1>
translate <2, -1, 0>
rotate <-50, 0, 0>
} |