POV-Ray : Newsgroups : povray.binaries.images : Lightning WIP : Re: Lightning WIP Server Time
18 Aug 2024 12:17:40 EDT (-0400)
  Re: Lightning WIP  
From: Nekar Xenos
Date: 30 Apr 2001 06:22:40
Message: <3aed3cf0@news.povray.org>
Not exactly what I was looking for, but can you remember how you did the
branching? (This is more like sparks than lightning)

Nekar

"Jan Walzer" <jan### [at] lzernet> wrote in message
news:3aeb2fcc@news.povray.org...
> I while ago I wrote a macro for lightnings .. I'll see, if I can find it
again ...
>
> here is a pic I did with it ...
>
> --
> background{rgb 1}camera{location<1,5,-2>look_at 0}#macro m(a,b,i)#local
d=(b-a)
> /8;#local
e=vcross(d,y);#if(i)m(a-e,a+e+2*d,i-1)m(a+e,a+2*d-e,i-1)m(a+3*d-e,a+e
>
+3*d,i-1)m(a+3*d-e,a+5*d-e,i-1)m(a+6*d-e,a+e+6*d,i-1)m(a+8*d-e,a+e+8*d,i-1)#
else
> cylinder{a,b,vlength(d)/3 pigment{rgb 0}}#end#end m(-4*x,2*x,4) // Jan
Walzer
>
>
>
>


Post a reply to this message

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