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
|
// Persistence Of Vision raytracer version 3.5 sample file.
// File by Dieter Bayer
// Perturbed camera demonstration.
// Use povray -icamera2.pov camera2.ini to trace.
global_settings { assumed_gamma 2.2 }
#include "colors.inc"
// camera used for perspective projection (POV-Ray standard)
// looking at the center of the cage
camera {
perspective
location <20, 30, -40>
right <4/3, 0, 0>
up <0, 1, 0>
direction <0, 0, 1>
look_at <0, 10, 0>
angle 70
normal {
waves 0.25 * (1 - clock)
frequency 8
phase 3.14 * clock
}
}
background { color red 0.078 green 0.361 blue 0.753 }
light_source { <100, 100, -100> color Gray60 }
light_source { <-100, 100, -100> color Gray60 }
#declare My_Texture_1 =
texture {
pigment {
color red 1 green 0.75 blue 0.33
}
finish {
diffuse 1
phong 0
phong_size 0
reflection 0
}
}
triangle { <50, -4, 50> <-50, -4, 50> <-50, -4, -50> texture { My_Texture_1 } }
triangle { <50, -4, 50> <-50, -4, -50> <50, -4, -50> texture { My_Texture_1 } }
#declare My_Texture_2 =
texture {
pigment {
color red 1 green 0.9 blue 0.7
}
finish {
diffuse 0.5
phong 0.5
phong_size 3
reflection 0.5
}
}
/* red */
#declare My_Texture_3 =
texture {
pigment {
color red 1 green 0 blue 0
}
finish {
diffuse 0.5
phong 0.5
phong_size 3
reflection 0.5
}
}
/* green */
#declare My_Texture_4 =
texture {
pigment {
color red 0 green 1 blue 0
}
finish {
diffuse 0.5
phong 0.5
phong_size 3
reflection 0.5
}
}
/* blue */
#declare My_Texture_5 =
texture {
pigment {
color red 0 green 0 blue 1
}
finish {
diffuse 0.5
phong 0.5
phong_size 3
reflection 0.5
}
}
/* yellow */
#declare My_Texture_6 =
texture {
pigment {
color red 1 green 1 blue 0
}
finish {
diffuse 0.5
phong 0.5
phong_size 3
reflection 0.5
}
}
sphere { <+10, 0, +10>, 4 texture { My_Texture_3 } }
sphere { <-10, 0, -10>, 4 texture { My_Texture_6 } }
sphere { <+10, 0, -10>, 4 texture { My_Texture_5 } }
sphere { <-10, 0, +10>, 4 texture { My_Texture_4 } }
sphere { <-10, 20, -10>, 4 texture { My_Texture_6 } }
sphere { <+10, 20, -10>, 4 texture { My_Texture_6 } }
sphere { <-10, 20, +10>, 4 texture { My_Texture_6 } }
sphere { <+10, 20, +10>, 4 texture { My_Texture_6 } }
cylinder { <-10, 0, -10>, <+10, 0, -10>, 2 texture { My_Texture_2 } }
cylinder { <+10, 0, -10>, <+10, 0, +10>, 2 texture { My_Texture_2 } }
cylinder { <+10, 0, +10>, <-10, 0, +10>, 2 texture { My_Texture_2 } }
cylinder { <-10, 0, +10>, <-10, 0, -10>, 2 texture { My_Texture_2 } }
cylinder { <-10, 20, -10>, <+10, 20, -10>, 2 texture { My_Texture_2 } }
cylinder { <+10, 20, -10>, <+10, 20, +10>, 2 texture { My_Texture_2 } }
cylinder { <+10, 20, +10>, <-10, 20, +10>, 2 texture { My_Texture_2 } }
cylinder { <-10, 20, +10>, <-10, 20, -10>, 2 texture { My_Texture_2 } }
cylinder { <-10, 0, -10>, <-10, 20, -10>, 2 texture { My_Texture_2 } }
cylinder { <-10, 0, +10>, <-10, 20, +10>, 2 texture { My_Texture_2 } }
cylinder { <+10, 0, +10>, <+10, 20, +10>, 2 texture { My_Texture_2 } }
cylinder { <+10, 0, -10>, <+10, 20, -10>, 2 texture { My_Texture_2 } }
|