|
![](/i/fill.gif) |
"Christian Froeschlin" <chr### [at] chrfr de> schreef in bericht
news:493da9ab$1@news.povray.org...
>
> I don't get it. Why do you see a light source when looking through an
> open cylinder, and a transparent one at that? What is an appropriate
> finish for that? Do you add media or is hollow just a Warp bait? ;)
Add a bit of fog (or media probably). This is Sam's original code for a
simple scene:
//=== start code ===
//
// visible_light_source.pov
//
// 2004 Sam Benge
// This scene demonstrates a
// technique for making light_sources
// visible in POV-Ray 3.5.
//
// This code is free for any kind of use.
//
global_settings{
assumed_gamma 1
}
#default{ finish{ ambient 0 }}
#declare lpos=<.25,.15,1>*100000;
#declare cpos=<0,5,-30>;
camera{
fisheye
right x*.5*1.33 up y*.5
location cpos
look_at y*5
angle 50
}
background{rgb<.1 .2 .5>}
fog{
rgb<.7 .6 .3>
distance 10000
fog_type 2
fog_alt 900
fog_offset 0
}
// Light Setup
light_source{lpos,<1 1 .6>*2 }
cylinder{
cpos,lpos,1
open
pigment{rgbt 1}
finish{
specular .3 roughness .005
phong 1 phong_size 50000
}
hollow no_shadow
}
// Water
plane{y,-10
finish{
reflection{0,1 fresnel}
specular .3 roughness .005
phong 1 phong_size 50000
}
normal{
average
normal_map{
[1 granite -.8 scale 30 poly_wave .2]
[1 granite -.6 scale 10 poly_wave .2]
[1 granite -.4 scale 3 poly_wave .2]
}
}
interior{ior 1.33}
hollow
}
//=== end code ===
Post a reply to this message
|
![](/i/fill.gif) |