|
|
I'm new to POV-ray, and I can't get photons to refract through the glass
cylinder. Check out the programming language below, and see what I did
wrong.
#include "colors.inc"
#include "textures.inc"
#include "finish.inc"
#include "glass.inc"
global_settings {
photons {
count 20000
autostop 0
jitter .4
}
}
camera {
location <0,5,-10>
look_at 2
}
light_source {<1000,1000,-1000>White
photons {refraction on
reflection on}}
background {rgb<.7,.7,1>}
plane {<0,1,0>,-1
texture {pigment {
granite
turbulence 1
pigment_map {
[0, rgb<.2,.1,0>]
[.5, rgb<.5,.3,.1>]
[1, rgb<.8,.5,.2>]
}}
finish {ambient 1}
}
}
lathe {
cubic_spline
6,
<1,0>,<1.1,0.1>,<1.1,4>,<.5,5>,<.3,7>,<.2,7.5>
texture {pigment {Col_Glass_Beerbottle}}
finish {ambient .3
specular .5 roughness .01
}
translate 0
}
lathe {
cubic_spline
4,
<.95,.01>,<1.05,.15>,<1.05,3.9>,<.95,4>
pigment {Brown}
finish {ambient .1}}
object {
cylinder {<4,4,0>,<4,0,0>,1
pigment {White filter .75}
finish {ambient .15
diffuse .5
reflection .25
/*irid {.3
thickness .1
turbulence 0}*/
} interior {dispersion 1.1}
} photons {
target 2
refraction on
reflection off
collect off
}
}
Post a reply to this message
|
|