|
|
as i wanted to proof from where my spotlight does come i found a strange
thing: the light goes through a wall a can be seen on the wall behind! and
no shadows can be seen!
how could this happen?
here is a code fragment:
//--------------------------------------
#macro Spotlight(noBox, goColor, ang_x, ang_y, ang_z, trans_x, trans_y,
trans_z, radi, fallo)
//--------------------------------------
union{
#if (!noBox)
box{
<-0.1,-0.1,0.01>,<0.1,0.1,0.05>
pigment {color goColor*2}
finish{
ambient 1
}
}
#end//if
#declare myradius = radi;
#declare myfalloff = fallo;
#declare area_no = 4;
light_source{
<0,0,0>
color goColor*2
spotlight
point_at <0,0,10>
area_light <-0.5,-0.5,0>,<0.5,0.5,0>,area_no,area_no
adaptive 1
jitter
radius myradius
falloff myfalloff
tightness 10
}
rotate <ang_x, ang_y, ang_z>
translate <trans_x, trans_y, trans_z>
}//union
#end //Spotlight()
box{
<-0.5,-0.5,-0.005>,<0.5,0.5,0.5>
pigment {color White}
translate <0,0,-0.05>
}
object{
Spotlight(0,<193,255,194>/255, 0, 0, 0, 0, 0.2, -0.5, 20, 20)
}
Post a reply to this message
Attachments:
Download 'strange.jpg' (21 KB)
Preview of image 'strange.jpg'
|
|