Nekar Xenos <j-p### [at] citywalk co za> wrote in message
news:3aea8c3a@news.povray.org...
> My first try at lightning.
> I can't seem to get it to show on any other background though. I also
still
> need to figure out how to do the branches.
>
Make it recursive.
#macro lightning(......)
................
#if (ChanceToBranch < rand(rnd))
lightning(.......)
#end
#end
ChanceToBranch should decrease each time
it recurses so that the macro will finish at some time.
I've got some lightning code that I never finished. If you like
I'll post it.
Gail
*************************************************************************
* gsh### [at] monotix co za * Step into the abyss, *
* http://www.rucus.ru.ac.za/~gail/ * and let go. Babylon 5 *
*************************************************************************
* The difficult we do immediately, the impossible takes a little longer *
*************************************************************************
Post a reply to this message
|