POV-Ray : Newsgroups : povray.text.tutorials : Translate Server Time
16 Apr 2024 12:50:59 EDT (-0400)
  Translate (Message 1 to 3 of 3)  
From: Jason Scott
Subject: Translate
Date: 6 Dec 2000 21:28:50
Message: <3a2ef5e2$1@news.povray.org>
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

From: Ken
Subject: Re: Translate
Date: 6 Dec 2000 21:57:33
Message: <3A2EFD69.144B586E@pacbell.net>
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

From: Warp
Subject: Re: Translate
Date: 7 Dec 2000 06:45:12
Message: <3a2f7848@news.povray.org>
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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.