Jump to content

Approaches to Lightning in Houdini


hopbin9

Recommended Posts

Hi,

I'm kind of stuck on coming up with a practical approach to doing lightning in Houdini. I need to generate the lightning effect as a point to point solution. So that I can have the lightning travel between different objects.

In the Houdini manual it says a L-System can be used to create lightning effects, but it doesn't give an example. I tried to play around with l-systems but I could only get it to grow lines from a source point and not to a target point. I've searched this forum, the Sidefx forums, Google searched, Youtube and Vimeo. Can't seem to find a tutorial on lightning in Houdini anywhere. cmiVFX has some training DVDs I might order that cover l-systems, but I can confirm that they cover the topics of lightning.

Can anyone point me in the right direction?

Thanks,

Link to comment
Share on other sites

Oh, so there is a lightning preset for l-systems. Wow, been using Houdini for a few months and never knew there were presents. Thanks sidefx for making that feature so easy to find.

Can anyone tell me if it's possible to make the lightning target a point?

Thanks

Link to comment
Share on other sites

Lightning from point to point is explained in a cmivfx-tutorial called "Houdini Procedural Animation Techniques".

Check it out, it's not free but you will learn more then just the effect you're searching for.

No, i am in no way related to cmi-vfx. :-)

Link to comment
Share on other sites

i believe that cmiVFX lightning from that DVD covers only curve based lightning, not branching one (at least what is seen in trailer video)

here is an example of creating simple 2 point lighting based on l-system lightning preset

it doesn't have up-vector so it may flip at some time when animating points and it's scaling the lightning to match points distance, it's not increasing in length

just to keep it simple as an example

it all depends on what you want

you can completely avoid l-systems

create line between 2 points

resample

add some noise to middle part

copy some noise lines onto it and maybe in more generations to recreate complex branching

this may provide you more freedom than l-systems

2_point_lightning.hip

Edited by anim
  • Like 2
Link to comment
Share on other sites

  • 3 weeks later...

Hi,

I figured out a way to get lightning to follow a two point line. See attached.

Found an old copy of the Houdini 8 manual on sidefx.com that references using the Rails SOP to scale/orient an l-system, but it looks like the tutorial was never finished.

Lightning Letters

This approach is nice cause it's a little easier to understand :), but I want to now make curved lightning. Maybe using the Project SOP to have the lightning wrap around a Tube or something.

lightning.hip

Link to comment
Share on other sites

  • 1 year later...

i believe that cmiVFX lightning from that DVD covers only curve based lightning, not branching one (at least what is seen in trailer video)

here is an example of creating simple 2 point lighting based on l-system lightning preset

it doesn't have up-vector so it may flip at some time when animating points and it's scaling the lightning to match points distance, it's not increasing in length

just to keep it simple as an example

it all depends on what you want

you can completely avoid l-systems

create line between 2 points

resample

add some noise to middle part

copy some noise lines onto it and maybe in more generations to recreate complex branching

this may provide you more freedom than l-systems

can you tell with help of what parameter i can make it like approaching from one point to other one, in your this example file? I have figured out few ways but i am not sure if its right way(efficient and fail proof way) to do that....

Link to comment
Share on other sites

I am still a relative beginner in Houdini, but I recently learned how to make a procedural lightning field from a tutorial I bought recently. Basically, the gist is you can create a lightning bolt from moving objects that reach to the nearest point on another object within a specified distance.

You can see the effect in this video I made. I am going to expand on this technique beyond what the tutorial taught me, but it was a really great lesson and I'm happy to share it with others. Once you understand how this effect is made it's easy to see how scalable it is and how to apply it to other objects (ie...a spaceship's landing gear contacting the ground or something).

Vimeo: Lightning Field

boltdrones_005.hip

Link to comment
Share on other sites

  • 4 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...