|
|
On Wed, 24 Mar 2004 20:47:54 -0600, How Camp <kro### [at] hotmailcom>
wrote:
>Perfect!
I spoke too soon. My understanding from reading the docs (6.5.8, as
Bob pointed out) is that a light_group can be formed with a
light_source and another object, and the indicated light_source will
only affect the object(s) in the light_group.
...So, what am I doing wrong in the following scene? Somehow, my
light in the light_group is affecting the two text objects outside the
group.
Incidentally, this effect seems to disappear if I comment out the
'looks_like {LightBox}' line in the scene.
camera {
location <0,0,-5>
look_at <0,0,0>
}
#declare LightBox=
box {
<-1,-5,-1>,<1,5,1>
texture {
pigment {rgb 1}
finish {ambient 1}
}
scale <0.25,5,0.1>
rotate -45*z
}
//light_source {<-10,5,-10>,1}
#declare MainTex =
texture {
pigment {
color rgb <1,0.9,0.3>
}
finish {
ambient 0.1 diffuse 0.2
specular 0.5 roughness 0.001
metallic brilliance 2
reflection {
<1,0.9,0.3>,0.5
metallic
}
}
}
light_group {
light_source {
-10*z,<1,0,0>
looks_like {LightBox}
rotate <0,(45-90*0.5),0>
}
text {
ttf "times.ttf"
"Flashy Text", 0.25, 0
texture {MainTex}
scale 0.5 translate <-1.25,-0.125,-0.125>
}
global_lights
}
text {
ttf "times.ttf"
"Top Text Above", 0.25, 0
texture {MainTex}
scale 0.5 translate <-1.25,0.625,-0.125>
}
text {
ttf "times.ttf"
"Bottom Text Below", 0.25, 0
texture {MainTex}
scale 0.5 translate <-1.25,-0.725,-0.125>
}
- How
Post a reply to this message
|
|