pshipkov
Vik Chandel developed some very nice lighting bolt effects.

Spreading the knowledge around (with his permission).
Check it out: 


Attached are the example Maya scenes.

Enjoy !
Reply 0 0
viki164
Thanks Peter for the headsup :)

A little note I would like to add here as of my understanding with PFX. The wave disturbance is due to the noise animation on the strokeshape node & most importantly the Occupy feature on the stroke shape. PFX Occupy features uses the space colonization algorithm. In the above example the branches are simply trying to reach other spaces where the other branches hasn't gotten into. The points are controlled by the Surface sample density ( Collider objects ). One can set multiple objects to collide & in return it can act like attraction points. If the branch termination is set to ON then the branches attracted into occupied space are terminated.

In the above test (sphere & cube ) are simply set to collision objects, when one turns on the occupy features, it uses the collision objects as occupy attract points. When they are within distance, the strokes will try to complete or attract & try n fill space to points along the object. The strokes can literally jump off from one object to another object provided they fall within the distance. The distance can be controlled by the " Attract Radius Offset " by this value one can determine the region of unoccupied space that attracts tube end-points.

By increasing the Max attract distance & Surface attract ( multiplier value on the strokeShape node) ..the end points of the branch can be manipulated to take the shape of the object.

To control the loops on the end points is little trickier than it looks. One has to tweak or massage the pfx tubes min length & max length to desired length. Its not 100 % procedural yet but it solves the purpose for now. I have animate the line modifier moving upwards so as to make the turbulent wiggles that travel upwards to give the updraft effect on the arcs.

Its not a complete effect but rather in working state or a WIP I would say. With time its possible to push this approach into more complex looking effect.

Please feel free to tweak & post your tests or any improvements if you come across. Would love to see it evolve. Thanks !

Best,
- Vik

Reply 0 0
David l
Looks really good vik! Thanks for sharing your techniques :)
//
David
Reply 0 0
pshipkov
great info Vik.
this topic is a great entry point for all things related to lighting bolts.
Reply 0 0
viki164
By far the best reference for Lightning I have seen so far :

Reply 0 0
ruchit
L3Deformer- Lightning Fx
https://youtu.be/s-t2QPisaho
Reply 0 0
ruchit
Here is my basic input on Wave deformation using peak deformer. Will think on how to cluster bunch of waves + rotate & twist whole wave.
Reply 0 0
viki164
Ruchit My Man :)
Reply 0 0
ruchit
Here is Scene File
output_oV2Dc6.gif 

zip waveDeformer_Handle_01.zip     
Reply 0 0
ruchit
Hi, i found simple trick to create Bolt or veins kind of fx (traveling over surface) using "Find_Shortest_Path" node inside Houdini, see below images.
So is there any way to do same thing inside maya ??.
polySelect -shortestEdgePath 2 51 pPlane; 
works perfect for but how to do this proceduraly (i.e shortest path between group of start points & end points)? How to output selection to curve  and then carve(cut in U direction)??

[image] 


[image] 

See Hip file here
Reply 0 0
viki164
Wow this one is keeper :)

http://www.digitalgolem.com/portfolio/detroit-electric-sp01/

Thanks ruchit for the link !



Reply 0 0
Reply