POV-Ray : Newsgroups : povray.advanced-users : Glows for Povray3.5 : Re: Glows for Povray3.5 Server Time
29 Jul 2024 02:32:03 EDT (-0400)
  Re: Glows for Povray3.5  
From: Warp
Date: 8 Apr 2003 17:09:45
Message: <3e933a99@news.povray.org>
Ghost <flu### [at] duratechindustriesnet> wrote:
> Glows were a fantastic feature of MegaPov.  I understand they weren't
> "included" in Povray3.5, but has anyone come up with a way to fake them,
> or recreate them accurately using just Povray3.5 code?  If so, I'd love
> to hear how, and learn.  I want to stick with 3.5, but I really miss the
> simplicity of "glow objects"...


-----------8<-----------8<-----------8<-----------8<-----------8<-----------
#macro Glow(GlowColor, Scale)
  sphere
  { 0, 1 hollow no_shadow
    pigment { rgbt 1 }
    interior
    { media
      { emission 1/Scale
        density
        { spherical density_map
          { [0 rgb 0][.5 rgb GlowColor*.5][1 rgb 1]
          }
        }
        samples 1,1 intervals 1 confidence .1
      }
    }
    scale Scale
  }
#end

camera { location -z*10 look_at 0 angle 35 }
plane { y,-2 pigment { checker rgb 1, rgb .5 } }

light_source
{ <-1.5,1,0>, <1,.5,0>
  looks_like { Glow(<1,.5,0>, .5) }
}
light_source
{ <2,.5,0>, <0,.5,1>
  looks_like { Glow(<0,.5,1>, 1) }
}
-----------8<-----------8<-----------8<-----------8<-----------8<-----------


-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

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