POV-Ray : Newsgroups : povray.newusers : lightning Server Time
13 Nov 2024 05:18:38 EST (-0500)
  lightning (Message 1 to 5 of 5)  
From: J
Subject: lightning
Date: 23 Jan 2001 13:08:06
Message: <3a6dc886$1@news.povray.org>
I've never really done anything with media, just pigments and textures.  I'm
wondering if there's a way to create a lightning-looking effect.
Any ideas?


Post a reply to this message

From: Bob H 
Subject: Re: lightning
Date: 23 Jan 2001 13:36:39
Message: <3a6dcf37@news.povray.org>
media using a crackle or marble pattern might do well.  Several people that I
know of have made lightning, not all the same way though.  Using a recursion of
objects (cylinders) in a CSG is one way.
I think if you were to use a thin box though having a marble media in it that
it should look pretty good.  Someone's probably done that before too.  Here's
how:

box {-1,1 scale <10,10,0.1> // thin z plane box
 pigment {rgbf 1}
  interior {
  media {emission 1 // self illuminate
             density {marble density_map { // pattern
                [.025 rgb 5] [.03 rgb 0] // fine line
                } turbulence .3 scale 3 } // stir it up
            } }
  translate 3*z // move back from camera
 hollow
  }

camera  // must look perpendicular to box
{
  location  -3*z
  look_at   0
}

Not perfect, but something to go by.

Bob H.

"J" <no.spam> wrote in message news:3a6dc886$1@news.povray.org...
> I've never really done anything with media, just pigments and textures.  I'm
> wondering if there's a way to create a lightning-looking effect.
> Any ideas?


Post a reply to this message

From: J
Subject: Re: lightning
Date: 23 Jan 2001 14:40:28
Message: <3a6dde2c@news.povray.org>
Not exactly what I had in mind, but by using multiple objects, that'll
actually probably allow me greater control over where it goes and how it's
aligned.  Thanks!

Bob H. wrote in message <3a6dcf37@news.povray.org>...
>media using a crackle or marble pattern might do well

>> I've never really done anything with media, just pigments and textures.
I'm
>> wondering if there's a way to create a lightning-looking effect.
>> Any ideas?
>
>
>


Post a reply to this message

From: Ken
Subject: Re: lightning
Date: 23 Jan 2001 22:19:04
Message: <3A6E4A17.9EF98653@pacbell.net>
J wrote:
> 
> I've never really done anything with media, just pigments and textures.  I'm
> wondering if there's a way to create a lightning-looking effect.
> Any ideas?

Bob's mind is slipping on us :) He forgot to mention the lightning include
file available at -

http://www.geocities.com/SiliconValley/Pines/3210/lightnin.html

-- 
Ken Tyler - 1400+ POV-Ray, Graphics, 3D Rendering, and Raytracing Links:
http://home.pacbell.net/tylereng/index.html http://www.povray.org/links/


Post a reply to this message

From: Bob H 
Subject: Re: lightning
Date: 24 Jan 2001 09:48:04
Message: <3a6eeb24@news.povray.org>
"Ken" <tyl### [at] pacbellnet> wrote in message
news:3A6E4A17.9EF98653@pacbell.net...
>
> J wrote:
> >
> > I've never really done anything with media, just pigments and textures.
I'm
> > wondering if there's a way to create a lightning-looking effect.
> > Any ideas?
>
> Bob's mind is slipping on us :) He forgot to mention the lightning include
> file available at -
>
> http://www.geocities.com/SiliconValley/Pines/3210/lightnin.html

No, not this time anyway.  I was going on the assumption a self-made lightning
was the goal so I was only showing one way it could be done.  I did hint at the
fact many other people have already done some form it too.
Any other time though, yes, my mind is slipping and sliding away.

Bob H.


Post a reply to this message

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