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
|
// This work is licensed under the Creative Commons Attribution 3.0 Unported License.
// To view a copy of this license, visit http://creativecommons.org/licenses/by/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: glass2.pov
// Desc: glass material and photons sample
// Date: June-August 2001
// Auth: Christoph Hormann
// -w320 -h160
// -w512 -h256 +a0.3
#version 3.6;
#include "colors.inc"
#include "glass.inc"
global_settings {
assumed_gamma 1.0
max_trace_level 25
photons {
spacing 0.05
autostop 0
jitter 0
}
}
camera {
location <20, 4.6, 10>
right x*image_width/image_height // 2*x
look_at <0, 2.4, 0>
angle 38
}
light_source {
<-10, 7, 18>
color rgb <1.3, 1.2, 1.1>
fade_power 2
fade_distance 45
photons {
reflection on
refraction on
}
}
#declare T_Wall=
texture {
pigment {
color rgb <0.98, 0.96, 0.90>
}
finish {
diffuse 0.7
brilliance 0.6
}
}
cylinder {
0*y, 9*y, 30
texture { T_Wall }
hollow on
}
#declare Height=2.4;
#declare ObjX=
intersection {
merge {
blob {
threshold 0.25
cylinder { -Height*y, Height*y, 0.7, 1 }
cylinder { <0, 2, 0.6>, <0, 2, -0.6>, 0.25, 1 }
cylinder { <0.5, 2.4, 0>, <-0.5, 2.4, 0>, 0.4, -1 }
sturm
}
box { <-1.5, 0, -0.3>, <1.5, 1.2, 0.3> }
cylinder { <-1.5, 0, 0>, <-1.5, 1.2, 0>, 0.3 }
cylinder { < 1.5, 0, 0>, < 1.5, 1.2, 0>, 0.3 }
cylinder { <-1.5, 1.2, 0>, < 1.5, 1.2, 0>, 0.3 }
sphere { <-1.5, 1.2, 0>, 0.3 }
sphere { < 1.5, 1.2, 0>, 0.3 }
scale 2
}
plane { -y, 0.001 }
}
#declare Col=color rgb <0.35, 0.65, 0.85>;
object {
ObjX
material {
texture {
pigment { color Col_Glass_Clear }
finish { F_Glass6 }
}
interior {
I_Glass_Exp(2)
fade_color Col
}
}
photons {
target
reflection on
refraction on
collect off
}
}
|