POV-Ray : Newsgroups : povray.binaries.scene-files : Glow trick (neon2.pov) : Glow trick (neon2.pov) Server Time
3 Sep 2024 02:16:52 EDT (-0400)
  Glow trick (neon2.pov)  
From:
Date: 2 Jun 1999 03:36:39
Message: <3754d03a.877782@news.povray.org>
/*
================
The Glow
Ok, so it's a dirty trick...
================
*/

#version 3.1;

camera {
  location -2*z
  look_at 1*z
}

light_source {
  <0, -1, -15>, 10
}

plane { z, 1
  pigment { rgb 1 }
  finish { reflection 1 }
}

plane { y, -0.5
  pigment { blue 1 }
  normal { bumps 0.4 scale 0.2 }
  finish { reflection 0.75 }
}

#declare xmin = -1.0;
#declare xmax = 1.0;

#declare y1 = 0.25;

union {
  sphere { xmin*x, 0.05 }
  cylinder {
    xmin*x, xmax*x, 0.05
  }
  sphere { xmax*x, 0.05 }

  pigment { rgbf <1, 0.2, 0, 0.75> }
  finish { ambient 1 }
  no_shadow

  translate <0, y1, 0.95>
}

#declare xdist = xmax - xmin;
#declare total = 9;

#declare xstep = xdist / (total-1);

#declare i = 0;
#while (i < total)
  light_source {
    <xmin+i*xstep, y1, 0.95>, red 1
  }
  #declare i = i + 1;
#end


Post a reply to this message

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