|
![](/i/fill.gif) |
"Sam Van Oort" <sam### [at] yahoo com> wrote in
news:3cc06290$1@news.povray.org:
> The "searchlight" is actually supposed to be a laser, but I'm too lazy to
> tinker with media. If anyone has a shortcut, be my guest.
Generic glowing sci-fi 'laser':
#macro BeamWeapon (Source, Bearing, Range, Radius, CenterColor, SideColor)
#local SourceRadius = Radius * 2;
sphere
{
0,1
pigment {rgbt 1}
hollow
interior
{
media
{
intervals 1
method 3
emission 1.75/Radius
density
{
spherical
color_map
{
[0 color rgb <0,0,0>]
[.125 color SideColor]
[1 color CenterColor]
}
}
}
media
{
intervals 1
method 3
absorption .25/Radius
density
{
cylindrical
color_map
{
[0 color rgb <0,0,0>]
[.125 color NegateVector (SideColor)]
[1 color NegateVector (CenterColor)]
}
}
}
}
scale SourceRadius
translate Source
}
cylinder
{
<0,0,0> <0,1,0>, 1
pigment {rgbt 1}
hollow
interior
{
media
{
intervals 1
method 3
emission 1.75/Radius
density
{
cylindrical
color_map
{
[0 color rgb <0,0,0>]
[.125 color SideColor]
[1 color CenterColor]
}
}
}
media
{
intervals 1
method 3
absorption .275/Radius
density
{
cylindrical
color_map
{
[0 color rgb <0,0,0>]
[.125 color NegateVector (SideColor)]
[1 color NegateVector (CenterColor*2)]
}
}
}
}
rotate x*90
scale <Radius, Radius, Range>
rotate Bearing
translate Source
}
#end
Post a reply to this message
|
![](/i/fill.gif) |