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 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291
|
// This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 Unported License.
// To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/3.0/ or send a
// letter to Creative Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA.
// Persistence Of Vision raytracer sample file.
// File by Drew Wells
// Title-"Not a Trace of Reality"
// Compuserve Hall Of Fame award winner
// This one is hard to describe and easy to look at. Have fun with it!
//
// -w320 -h240
// -w800 -h600 +a0.3
#version 3.6;
global_settings {
assumed_gamma 2.2
max_trace_level 5
}
#include "shapes.inc"
#include "colors.inc"
#include "textures.inc"
#declare It = sphere { <0, 0, 0>, 1 scale <4.0, 0.3, 0.3> }
/* Camera/Viewer */
// This camera is different from any of the other sample scene files
// The camera is looking in the negative Z direction
// and right is in the negative X direction.
camera {
angle 55 // direction <0.0, 0.0, 1.5>
up <0.0, 1.0, 0.0>
right -x*image_width/image_height
location < -15.0, 5.0, 120.0>
look_at <10.0, 12.0, 55.0>
}
#declare Purple_Clouds = pigment {
bozo
turbulence 0.6
colour_map {
[0.0 0.5 colour red 0.9 green 0.5 blue 0.6
colour red 0.4 green 0.0 blue 0.4]
[0.5 0.6 colour red 1.0 green 1.0 blue 1.0 filter 1.0
colour red 1.0 green 1.0 blue 1.0 filter 1.0 ]
[0.6 1.001 colour red 1.0 green 1.0 blue 1.0 filter 1.0
colour red 1.0 green 1.0 blue 1.0 filter 1.0]
}
}
#declare Sunset_Sky = pigment {
gradient y
colour_map {
[0.0 0.4 colour red 0.8 green 0.0 blue 0.0
colour red 0.4 green 0.0 blue 0.4]
[0.4 0.6 colour red 0.4 green 0.0 blue 0.4
colour red 0.0 green 0.0 blue 0.2]
[0.6 1.001 colour red 0.0 green 0.0 blue 0.2
colour red 0.0 green 0.0 blue 0.0]
}
scale 700.0
}
#declare Twister = union {
#include "ntreal.inc"
pigment {
White_Wood
scale 3.0
}
finish {
crand 0.05
ambient 0.1
diffuse 0.99
}
}
#declare Slice = sphere {
<0, 0, 0>, 1
translate <0.0, 0.0, 3.0>
scale <0.25, 1.00, 0.25>
}
#declare Thing = union {
object { Slice }
object { Slice rotate -20.0*y }
object { Slice rotate -40.0*y }
object { Slice rotate -60.0*y }
object { Slice rotate -80.0*y }
object { Slice rotate -100.0*y }
object { Slice rotate -120.0*y }
object { Slice rotate -140.0*y }
object { Slice rotate -160.0*y }
object { Slice rotate 180.0*y }
object { Slice rotate -200.0*y }
object { Slice rotate -220.0*y }
object { Slice rotate -240.0*y }
object { Slice rotate -260.0*y }
object { Slice rotate -280.0*y }
object { Slice rotate -300.0*y }
object { Slice rotate -320.0*y }
object { Slice rotate -340.0*y }
pigment { color red 0.8 green 0.22 blue 0.1 }
normal {
bumps 0.3
scale 0.1
}
finish {
ambient 0.1
diffuse 0.9
phong 0.75
phong_size 30.0
}
}
#declare Slice2 = sphere { <0.0, 0.0, 0.5>, 0.1 }
#declare Thing2 = union {
object { Slice2 }
object { Slice2 rotate -20.0*y }
object { Slice2 rotate -40.0*y }
object { Slice2 rotate -60.0*y }
object { Slice2 rotate -80.0*y }
object { Slice2 rotate -100.0*y }
object { Slice2 rotate -120.0*y }
object { Slice2 rotate -140.0*y }
object { Slice2 rotate -160.0*y }
object { Slice2 rotate 180.0*y }
object { Slice2 rotate -200.0*y }
object { Slice2 rotate -220.0*y }
object { Slice2 rotate -240.0*y }
object { Slice2 rotate -260.0*y }
object { Slice2 rotate -280.0*y }
object { Slice2 rotate -300.0*y }
object { Slice2 rotate -320.0*y }
object { Slice2 rotate -340.0*y }
pigment { color red 0.1 green 0.22 blue 0.8 }
finish {
ambient 0.1
diffuse 0.9
phong 0.75
phong_size 30.0
}
}
/*******************************************/
/*******************************************/
object {
Twister
rotate <-15.0, 30.0, 0.0>
translate <-16.0, 7.7, 61.5>
}
object {
Twister
rotate <-15.0, 0.0, -10.0>
translate <0.0, 1.0, 88.0>
}
object {
Twister
rotate <0.0, 45.0, 0.0>
translate <13.0, 25.0, 40.0>
}
object {
Twister
rotate <-15.0, 0.0, -10.0>
translate <26.0, 14.0, 70.0>
}
/* Little Things */
object {
Thing
scale <1.5, 3.0, 1.5>
translate < -11.0, 1.55, 95.0>
}
object {
Thing2
scale 6.0
rotate <-10.0, 30.0, 0.0>
translate <-11.0, 1.55, 95.0>
}
object {
Thing
scale <1.5, 3.5, 1.5>
translate <-10.0, 10.55, 95.0>
}
object {
Thing2
scale 10.0
rotate <0.0, 0.0, -35.0>
translate < -10.0, 10.55, 95.0>
}
object {
Thing
scale <1.5, 3.5, 1.5>
translate < -4.0, 4.0, 80.0>
}
object {
Thing2
scale 6.0
rotate <-30.0, 0.0, 20.0>
translate < -4.6, 5.55, 80.0>
}
object {
Thing
scale <1.5, 3.5, 1.5>
translate < 11.0, 1.6, 90.0>
}
object {
Thing2
scale <8.0, 8.0, 8.0>
rotate <0.0, 45.0, 20.0>
translate < 10.0, 7.0, 90.0>
}
/*cloud hills*/
object {
Paraboloid_Y
scale <40.0, 10.0, 77.0>
rotate 180.0*z
translate <0.0, 21.0, -28.0>
texture {
pigment {
Purple_Clouds
scale 5.0
}
finish {
ambient 0.5
diffuse 0.9
}
}
}
/*cloud hill to right*/
object {
Paraboloid_Y
scale <30.0, 10.0, 40.0>
rotate 180.0*z
translate <40.0, 14.0, 50.0>
texture {
pigment {
Purple_Clouds
scale < 7.0, 5.0, 5.0>
}
finish {
ambient 0.5
diffuse 0.9
}
}
}
/*The Sun*/
light_source { <150.0, 40.0, 1200.0> colour White }
/*sky*/
sphere {
<0.0, 0.0, 0.0>, 2000.0
inverse
texture {
pigment {
Sunset_Sky
translate 200.0*y
scale 1.2
}
finish {
ambient 0.6
diffuse 0.0
}
}
}
|