|
|
Have another question regarding creating a shaped light. Let's say I have the
following simple scen
box{ -1, 1 scale 100 scale z/100000 translate z*-10 pigment{color Red}
finish{ambient 0}}
sphere{0,1 }
light_souce{ z*10 spotlight point_at z*-10 radius 30 falloff 30}
How do do I create a scene with a light source against the box with the shadow
of the sphere but without the sphere actually being in the scene. I though of
using a light_group and difference like
difference{
light_group{
box{ -1, 1 scale 100 scale z/100000 translate z*-10 pigment{color Red}
finish{ambient 0}}
sphere{0,1 }
light_souce{ z*10 spotlight point_at z*-10 radius 30 falloff 30}
}
light_group{
sphere{0,1 }
}
}
or even instead of a second light_group just using a sphere for the difference
difference{
light_group{
box{ -1, 1 scale 100 scale z/100000 translate z*-10 pigment{color Red}
finish{ambient 0}}
sphere{0,1 }
light_souce{ z*10 spotlight point_at z*-10 radius 30 falloff 30}
}
sphere{0,1 }
}
nothing seems to work though.
Any thoughts?
Post a reply to this message
|
|