|
|
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
|
|
|
|
Alain <aze### [at] qwertygov> wrote:
> Also, increase max_trace_level to around 12... That's the level I had to
> use to get rid of the warning.
I thought no warning is given if you explicitly specify a max_trace_level
(any value).
And besides, it's not a question of getting rid of the warning. It's
a question of image quality vs. rendering speed ratio. If your image
looks good with a max_trace_level of 2, then by all means use it.
--
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}// - Warp -
Post a reply to this message
|
|