Page 1 of 1

Simple Electrical Arcs

Posted: 24 Feb 2012, 17:28
by Matic
Image

I promised on the softimage list a while back that I would post some of the lightning/electricity compounds I used on recent projects: verizon etc etc. But I'm still not sure if I'm legally clear to release them. While I sort it out though, here's a very, very simple approach to making point-to-point electrical arcs, like "dark jedi" electricity, simple lightning, that sort of thing.

A sample scene is included. To use, make an unsimulated pointcloud and a target geometry, and connect the compound. Lightning can be set to strike at random intervals, or always be on.

Super, super simple, but hopefully it is of interest. Cheers.

Re: Simple Electrical Arcs

Posted: 24 Feb 2012, 18:33
by Matic
Image

Ok, here's another simple one I made prior to production version... In these scenes are two compounds, one generates laplacian/DLA lightning similar to the popular blender lightning plugin (but much faster).

The other compound in there is a (hacky) way to animate generated lightning - an approach I've actually used pretty extensively in production, because it's such a fast way to give sudden, brief electrical bursts some life without costly, time-wasting simulation. fast/cheap = good

There are 3 variant scenes - one simulation showing lightning "growing" over time, one with the cheap animation set up, and one showing the basic setup. In production I tended to generate very large bolts of lightning (using tropisims etc which aren't available here sorry), freeze them out as a model, and then wrap them around geometry or into roughly defined and controllable/editable shapes and animate.

Cheers
basic_lightning_Evolving.rar
(143.4 KiB) Downloaded 528 times
basic_lightning_cheapAnim.rar
(194.81 KiB) Downloaded 520 times
basic_lightning_Static.rar
(142.09 KiB) Downloaded 502 times

Re: Simple Electrical Arcs

Posted: 24 Feb 2012, 19:08
by ActionArt
Thanks for sharing! Very interesting.

Re: Simple Electrical Arcs

Posted: 24 Feb 2012, 19:53
by Ramon
Changable thickness from root to tip?

Re: Simple Electrical Arcs

Posted: 25 Feb 2012, 07:05
by Matic
Hmm, about thickness I don't recall, I think I had that going at one point but it may not be in those early compounds.

Wouldn't be difficult to hack that into the first compound, as each strike is a single strand, but the laplacian lightning compound would be tougher because it's made up of many smaller strands, but you could scale by a number of criteria like iteration/generation, distance from origin etc, which I did at some point to grade color along the length of the tree.

You can also get some very cool animation out of the laplacian setup by messing with the iterations, to make electricity crawl along surfaces (think the first star wars when R2 got zapped by jawas) as well as avoid or snap to specific surfaces etc.

Re: Simple Electrical Arcs

Posted: 25 Feb 2012, 20:43
by edschiffer
thanks for sharing, Andy!

Re: Simple Electrical Arcs

Posted: 26 Feb 2012, 15:11
by gustavoeb
sharing is caring! thanks Matic :D

Re: Simple Electrical Arcs

Posted: 28 Feb 2012, 06:31
by Matic
gustavoeb wrote:sharing is caring! thanks Matic :D
Glad to. :)

For more lightning fun be sure to take a look at Leonard Koch's fantastic new suite of lightning compounds, LK tools. It's really nicely made. viewtopic.php?f=4&t=2164