POV-Ray : Newsgroups : povray.newusers : Lightning Effect from A to B Server Time
4 Nov 2024 19:23:44 EST (-0500)
  Lightning Effect from A to B (Message 1 to 7 of 7)  
From: dave
Subject: Lightning Effect from A to B
Date: 18 Nov 2004 06:35:01
Message: <web.419c8890914a8b335a5e05860@news.povray.org>
I am looking for a way to simulate lightning going from point A to B. Is it
possible to do so using fractals? Or is there an easy script for making
white lightning between points?

cheers,

dave


Post a reply to this message

From: Rafal 'Raf256' Maj
Subject: Re: Lightning Effect from A to B
Date: 18 Nov 2004 08:08:50
Message: <Xns95A59042E7E13raf256com@203.29.75.35>
davidbritz(at)yahoo(dot)com
news:web.419c8890914a8b335a5e05860@news.povray.org 

> I am looking for a way to simulate lightning going from point A to B.
> Is it possible to do so using fractals? Or is there an easy script for
> making white lightning between points?

I would suggest to make a spheresweep moving along a spline constructed 
using macro from meany points to with turbulence movment is applyed.

Also recursion might make it easy to add several smaller lighting-branches.

-- 
http://www.raf256.com/3d/
Rafal Maj 'Raf256', home page - http://www.raf256.com/me/
Computer Graphics


Post a reply to this message

From: Jim Charter
Subject: Re: Lightning Effect from A to B
Date: 18 Nov 2004 13:44:00
Message: <419ced70$1@news.povray.org>
dave wrote:
> I am looking for a way to simulate lightning going from point A to B. Is it
> possible to do so using fractals? Or is there an easy script for making
> white lightning between points?
> 
> cheers,
> 
> dave
> 
> 
There was a macro written to do that. I forget the name of the author 
You have to search back throught the archives in p.b.scenefiles  I think 
you search on "lightning"


Post a reply to this message

From: Ross
Subject: Re: Lightning Effect from A to B
Date: 18 Nov 2004 13:53:54
Message: <419cefc2$1@news.povray.org>
"Rafal 'Raf256' Maj" <spa### [at] raf256com> wrote in message
news:Xns95A59042E7E13raf256com@203.29.75.35...
> davidbritz(at)yahoo(dot)com
> news:web.419c8890914a8b335a5e05860@news.povray.org
>
> > I am looking for a way to simulate lightning going from point A to B.
> > Is it possible to do so using fractals? Or is there an easy script for
> > making white lightning between points?
>
> I would suggest to make a spheresweep moving along a spline constructed
> using macro from meany points to with turbulence movment is applyed.
>
> Also recursion might make it easy to add several smaller
lighting-branches.
>
> -- 
> http://www.raf256.com/3d/
> Rafal Maj 'Raf256', home page - http://www.raf256.com/me/
> Computer Graphics

this came up from a google search:
http://news.povray.org/povray.text.scene-files/thread/%3C3aed8503%241%40news.povray.org%3E/?mtop=12

maybe it could be modified to connect to a certain end point.

Any searches through the web interface of the povray newsgroups for
"lightning" only shows that people mispell "lighting" as "lightning" way too
much to make "lightning" a useful search term.

so i give up. my two cents are, it seems lightning is more tree-like than
spline-like so i'd go with a fractal-type method. Plus, if the lightning is
way off in the distance, sphersweeps are unnecesarily slow. some combination
of cylinders and cones with spheres connecting them would be faster.


Post a reply to this message

From: Jim Charter
Subject: Re: Lightning Effect from A to B
Date: 18 Nov 2004 14:10:55
Message: <419cf3bf$1@news.povray.org>
Ross wrote:
> "Rafal 'Raf256' Maj" <spa### [at] raf256com> wrote in message
> news:Xns95A59042E7E13raf256com@203.29.75.35...
> 
>>davidbritz(at)yahoo(dot)com
>>news:web.419c8890914a8b335a5e05860@news.povray.org
>>
>>
>>>I am looking for a way to simulate lightning going from point A to B.
>>>Is it possible to do so using fractals? Or is there an easy script for
>>>making white lightning between points?
>>
>>I would suggest to make a spheresweep moving along a spline constructed
>>using macro from meany points to with turbulence movment is applyed.
>>
>>Also recursion might make it easy to add several smaller
> 
> lighting-branches.
> 
>>-- 
>>http://www.raf256.com/3d/
>>Rafal Maj 'Raf256', home page - http://www.raf256.com/me/
>>Computer Graphics
> 
> 
> this came up from a google search:
>
http://news.povray.org/povray.text.scene-files/thread/%3C3aed8503%241%40news.povray.org%3E/?mtop=12
> 
> maybe it could be modified to connect to a certain end point.
> 
> Any searches through the web interface of the povray newsgroups for
> "lightning" only shows that people mispell "lighting" as "lightning" way too
> much to make "lightning" a useful search term.
> 
> so i give up. my two cents are, it seems lightning is more tree-like than
> spline-like so i'd go with a fractal-type method. Plus, if the lightning is
> way off in the distance, sphersweeps are unnecesarily slow. some combination
> of cylinders and cones with spheres connecting them would be faster.
> 
> 
> 
> 

I used some sdl posted by someone named
Ben Birdsey
I was sure I got it from either text.scenefiles or b.scenefiles
but I can not find it now.
It indeed  used a method of subdividing between the two points and 
replacing with random cylinder segments and again and again, fractal style
I used it to create this image:
http://tinyurl.com/4qx26

Unfortunately if the sdl I used still exists it is on my old laptop
which I can no longer get to boot.

Anyway it looked like a pretty easy technique for anyone who commonly 
writes recursive fracttal generating routines.  Just not easy for me.

Sorry I couldn't help more


Post a reply to this message

From: Stefan Viljoen
Subject: Re: Lightning Effect from A to B
Date: 18 Nov 2004 14:15:29
Message: <419cf4d1@news.povray.org>
"dave" <davidbritz(at)yahoo(dot)com> wrote:

> I am looking for a way to simulate lightning going from point A to B. Is
> it possible to do so using fractals? Or is there an easy script for making
> white lightning between points?
> 
> cheers,
> 
> dave

Hi Dave!

The macro that Jim refers to was created by Rune S. Johannsen

Here's the link

http://rsj.mobilixnet.dk

look for electric.zip

If you can't find it, sound off again - Rune seems not to want ppl to mail
his excellent stuff around (according to terms.txt in the electric.zip) but
I guess it should be ok to download it off his site. Look for the Povray
section and the lightning include.

Kind regards,
-
Stefan Viljoen
Software Support Technician
Polar Design Solutions


Post a reply to this message

From: Mike Thorn
Subject: Re: Lightning Effect from A to B
Date: 24 Nov 2004 16:44:20
Message: <41a500b4$1@news.povray.org>
dave wrote:
> I am looking for a way to simulate lightning going from point A to B. Is it
> possible to do so using fractals? Or is there an easy script for making
> white lightning between points?

It's not exactly what you want, but you might find the Lightning1 in 
texture3.pov somewhat useful. Look in your scenes/incdemo directory.

~Mole


Post a reply to this message

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