POV-Ray : Newsgroups : povray.binaries.images : Neon Tubes (Anyone can tell me how to make them emit light) : Re: Neon Tubes (Anyone can tell me how to make them emit light) Server Time
5 Nov 2024 10:22:44 EST (-0500)
  Re: Neon Tubes (Anyone can tell me how to make them emit light)  
From: s day
Date: 8 Sep 2005 08:45:01
Message: <web.432031edfb56d42840d88eb30@news.povray.org>
I would use MegaPov's glow feature. (Used to produce the image below which
is only partially rendered.) This was just a modification to one of the
sample scenes (written by Christoph Hormann) and the tube lights are
generated with the following code:

#version unofficial MegaPov 1.1;

#declare Brightness = 54;

#default {
  texture {
    pigment { color rgb 1.5 }
    finish { diffuse 1 ambient 0.0 }
  }
}


camera {
  location    <-92, -12, -35>
  direction   z*1.5
  right       1.33333*x
  look_at     <-73, 0.0, 0>
}



#macro Glow(Color)
  media {
    emission 1
    density {
      cylindrical
      poly_wave 5
      density_map {
        [0 rgb 0]
        [1 rgb Color]
      }
    }
    method 3
  }
#end


#declare ls = union {

  cylinder {
    <0, 0, 0> <0, 10, 0> 1
    hollow on
    pigment { rgbt 1 }
    interior { Glow(<1.0, 1, 1>*Brightness) }
    no_image
  }
  cylinder {
    <0, 0, 0> <0, 10, 0> 1
    hollow on
    pigment { rgbt 1 }
    interior { Glow(<0.1, 0.2, 1.0>*Brightness) }
    no_radiosity
  }
  rotate <-90, 0, 0>
  translate <-70, 24, 0>
}

object { ls rotate <0, -20, 0> }
object { ls rotate <0, 0, 0> }
object { ls rotate <0, 20, 0> }
object { ls rotate <0, 40, 0> }
object { ls rotate <0, 60, 0> }
object { ls rotate <0, 80, 0> }
object { ls rotate <0, 100, 0> }



Of course if you don't want simple shapes (cylinder, sphere box etc.) you
might have a bit more difficulty..

Sean


Post a reply to this message


Attachments:
Download 'glow.jpg' (53 KB)

Preview of image 'glow.jpg'
glow.jpg


 

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