|
|
"Phil Cook" <phi### [at] nospamdeckingdealscouk> wrote in message
news:opr5ezuie0p4ukzs@news.povray.org...
> On Wed, 24 Mar 2004 23:09:38 -0600, How Camp <kro### [at] hotmailcom>
wrote:
>
> > 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.
>
> Remove the finish {ambient 1} from the LightBox, light_group constrains
> the light_source but the box is producing it's own 'light' from the
> ambient which is not stopped and is being reflected in the text
Yep, unfortunately light groups are for lights and do not do anything else
to the objects in the scene except to shine for what's included in their
respective groups.
CSG is possble, so there's some chance of fixing it up using that. At least,
I've found that bounding the looks_like object to the text seems to be one
possibility. Only problem with it is the illumination is, of course, then
from that same text. You can face the camera the other way and see that
using the changed script below.
camera {
location <0,0,-5> // +5 z to see light object
look_at <0,0,0>
}
#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
}
}
}
#declare FlashyText=
text {
ttf "times.ttf"
"Flashy Text", 0.25, 0
scale 0.5 translate <-1.25,-0.125,-0.125>
}
#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
bounded_by {FlashyText scale <0.5,5,1>}
}
//light_source {<-10,5,-10>,1}
light_group {
light_source {
-10*z,<1,0,0>
looks_like {LightBox}
rotate <0,(30-60*clock),0>
}
object {FlashyText texture {MainTex}}
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>
}
Post a reply to this message
|
|