|
|
I am making a lamp but whan I goto reanslate it, its not translateing the
glow and I cant figure out why. So heres the code. So if you can help me it
would be a great help.
#declare Lamp =
union {
// The glass part of the light
sphere {
<0,0,0>.5
pigment { rgbt <.25,.25,.25,.5> }
translate <0,5.15,0>
}
// The Metal cap on the light
sphere {
<0,.5,0>.125
texture { GreenMetal }
scale <2,1,2>
translate <0,5.15,0>
}
// The light pole
lathe {
cubic_spline
9
<0,0> <.25,0> <.25,.5> <.125,1> <.125,2>
<.25,3> <.125,4> <.25,4.75> <.5,4.75>
texture { GreenMetal }
}
// The Light Glow
light_source {
<0,5.25,0>
color White
glow {
size .65
type 2
}
}
}
object { Lamp }
object { Lamp translate <5,0,0> }
--
Jason S
Post a reply to this message
|
|
|
|
Jason Scott wrote:
>
> I am making a lamp but whan I goto reanslate it, its not translateing the
> glow and I cant figure out why. So heres the code. So if you can help me it
> would be a great help.
You need to add a translate statement to the glow statement. Glows
do not translate to the position of the light_source and must be
manualy positioned to match.
P.S. This should have been posted in the unofficial patches group
since this is a feature not supported in the official version of
POV-Ray.
--
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/
Post a reply to this message
|
|
|
|
Jason Scott <fir### [at] hotmailcom> wrote:
: I am making a lamp but whan I goto reanslate it, its not translateing the
: glow
It's a known limitation and it is being fixed.
--
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/
Post a reply to this message
|
|