POV-Ray : Newsgroups : povray.general : Lens Flares? : Re: Lens Flares? Server Time
7 Aug 2024 11:26:04 EDT (-0400)
  Re: Lens Flares?  
From: Bill DeWitt
Date: 7 Nov 2001 11:34:11
Message: <3be96283$1@news.povray.org>
"Ken" <tyl### [at] pacbellnet> wrote in message
news:3BE955A6.4C3ED542@pacbell.net...
>
>
> Warp wrote:
>
> > #macro c(X)torus{.5.1clipped_by{box{<.7.2><-.7,-.2.7>}}rotate-90*x
translate
> > x*X}#end #macro C(A)cylinder{A,A-y*.5.1}#end
merge{c(.5)c(-.5)C(x)C(-x)C(0)
> > translate z*2pigment{crackle scale.5rotate
90turbulence.75color_map{[.05rgb
> > 1][.1rgb<1,.25,1>][.25rgbf 1]}}finish{ambient 1}}
>
> Everybody around here whines about how important it is to use proper
> indenting yet look at that mess! When I do it people critisie me. When
> you guys do it in your sigs it is all of a sudden ok. Talk about double
> standards!

    I agree.

//// New, improved and FAIR code follows ////

 #macro c (X)
    torus {
           0.5, 0.1
              clipped_by {
                          box {
                               <  0.7, 0.2 >,
                               < -0.7,-0.2, 0.7 >
                              }
                         }
              rotate-90*x
              translate x*X
          }
 #end

 #macro C (A)
    cylinder{
             A, A-y*0.5, 0.1
            }
 #end

 merge{
       c(0.5)
       c(-0.5)
       C(x)
       C(-x)
       C(0)
       translate z*2
       pigment{
               crackle
               scale 0.5
               rotate 90
               turbulence 0.75
               color_map {
                          [ 0.05 rgb 1 ]
                          [ 0.10 rgb < 1.0, 0.25, 1.0 > ]
                          [ 0.25 rgbf 1 ]
                         }
              }
              finish {
                      ambient 1
                     }
      }


Post a reply to this message

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