Jump to content


Lightning HDA OTL


  • Please log in to reply
15 replies to this topic

#1 aghourab

aghourab

    Peon

  • Members
  • Pip
  • 55 posts
  • Joined: 23-October 07
  • Name:A G

Posted 21 June 2011 - 01:44 PM

Hello All,

Just thought I'd post a VEX based Lightning HDA (OTL) I made for one of my course modules. I'm still working on adding some extra functionality to it in my spare time (e.g. point cloud to point cloud lightning, shadow promotion).

The lightning is basically a set of curves with a custom fBm noise applied to it.

Branches are dynamically created/destroyed then reallocated in a sop solver.

Targeting is point cloud based. You feed it some painted geometry, the lightning curve will then snap to the closest point with a charge (e.g. grey - white), deplete the color at every frame, then snap to the next nearest point with a charge.

There's a fair few controls in their that allows you to control the look/definition/rendering of the lightning. So have a play. Also included are three example scenes, and a manual if you don't know what parameter does what:)I'll be posting a little video tutorial on it next week for fun...

Enjoy, and feedback, suggested functionality appreciated!

Cheers
Ahmad

Sample Video ->

View on Vimeo.

(Scene Geometry provided by Ravi Acharya)
attachment=12326:lightningRender.jpg
lightningRender.jpg
Attached File  AG_Lightning.zip   1.46MB   759 downloads

Edited by aghourab, 21 June 2011 - 01:45 PM.

Showreel :) ->

View on Vimeo.


#2 ChristianW

ChristianW

    Houdini Master

  • Members
  • PipPipPipPip
  • 512 posts
  • Joined: 10-November 10
  • Location:London
  • Name:Christian Waite

Posted 21 June 2011 - 03:29 PM

Wicked man, well done.
I'll take a look at the scene properly tomorrow. I have an old scene we used on a recent film that was based of LSystems and at one point was midi triggered. I've been wondering if it could be simplified with the SOP solver...

#3 hopbin9

hopbin9

    Houdini Master

  • Members
  • PipPipPipPip
  • 803 posts
  • Joined: 14-March 10
  • Location:Canada
  • Name:Hop Bin

Posted 21 June 2011 - 03:55 PM

wow, I could have really used this a few months ago. Way better then what I came up with.

Thanks,
Posted Image
Come download the free open source asset library for Houdini.
Help us reach 1,000 fans on facebook!

#4 aghourab

aghourab

    Peon

  • Members
  • Pip
  • 55 posts
  • Joined: 23-October 07
  • Name:A G

Posted 22 June 2011 - 05:29 AM

Thanks gies:)

ChristianW -> If were thinking of the same film, and the same Midi triggered shot, then that is pretty much the same scene that inspired me. I tried to give the lightning OTL the functionality that would make replicating that shot possible (or so I hope).

Edited by aghourab, 22 June 2011 - 05:30 AM.

Showreel :) ->

View on Vimeo.


#5 michael

michael

    The Deaf Stamp!

  • Administrators
  • 3,830 posts
  • Joined: 25-June 02
  • Location:Toronto, Canada
  • Name:Michael Goldfarb

Posted 22 June 2011 - 06:08 PM

Sorcerer's Apprentice?
Michael Goldfarb | CG Supervisor | SPIN

#6 ChristianW

ChristianW

    Houdini Master

  • Members
  • PipPipPipPip
  • 512 posts
  • Joined: 10-November 10
  • Location:London
  • Name:Christian Waite

Posted 23 June 2011 - 02:14 AM

;)

The only crit I'd say is I don't think the bolts are expanding out as they connect.


#7 aghourab

aghourab

    Peon

  • Members
  • Pip
  • 55 posts
  • Joined: 23-October 07
  • Name:A G

Posted 23 June 2011 - 08:18 AM

;)

The only crit I'd say is I don't think the bolts are expanding out as they connect.


Good point actually. Data exists detailing the life/lifespan of each branch, so I guess I could actually add that. Thanks :)

There was also one more feature I never got round to, rigging the main lightning curve (Like Maya's default Lightning), just for an added extra bit of control.

Edited by aghourab, 23 June 2011 - 08:18 AM.

Showreel :) ->

View on Vimeo.


#8 Adam Ferestad

Adam Ferestad

    Initiate

  • Members
  • PipPip
  • 185 posts
  • Joined: 24-May 11
  • Location:Ohio
  • Name:Adam Ferestad

Posted 26 June 2011 - 09:26 AM

This is amazing. I will have to spend some time digging through it to figure out how it all works. Great job.
Tutorials Available for Houdini 11 at AdamFerestad.com:
  • Parametric Table - Introductory modeling/expression tutorial
  • Ripple Interference Pattern - Beginners Modeling/VEX Tutorial
  • Drama Cam - Intermediate Chops tutorial
  • Christmas Lights - Beginner Modeling/Rendering Tutorial
  • Space Ship - Intermediate/Advanced Procedural Modeling

#9 aghourab

aghourab

    Peon

  • Members
  • Pip
  • 55 posts
  • Joined: 23-October 07
  • Name:A G

Posted 26 June 2011 - 10:25 AM

This is amazing. I will have to spend some time digging through it to figure out how it all works. Great job.


Thanks Adam! It's not really all that complex when you break it down (esp not the targeting bit). As mentioned previously, I'll have a (or maybe 2) video 'tutorials' detailing its use and explaining the way the underlying system works.
Showreel :) ->

View on Vimeo.


#10 Adam Ferestad

Adam Ferestad

    Initiate

  • Members
  • PipPip
  • 185 posts
  • Joined: 24-May 11
  • Location:Ohio
  • Name:Adam Ferestad

Posted 26 June 2011 - 11:59 AM

Thanks Adam! It's not really all that complex when you break it down (esp not the targeting bit). As mentioned previously, I'll have a (or maybe 2) video 'tutorials' detailing its use and explaining the way the underlying system works.


Do you have any links to those? I haven't gotten into point cloud work and i would love to get some more information.
Tutorials Available for Houdini 11 at AdamFerestad.com:
  • Parametric Table - Introductory modeling/expression tutorial
  • Ripple Interference Pattern - Beginners Modeling/VEX Tutorial
  • Drama Cam - Intermediate Chops tutorial
  • Christmas Lights - Beginner Modeling/Rendering Tutorial
  • Space Ship - Intermediate/Advanced Procedural Modeling

#11 aghourab

aghourab

    Peon

  • Members
  • Pip
  • 55 posts
  • Joined: 23-October 07
  • Name:A G

Posted 26 June 2011 - 12:24 PM

Do you have any links to those? I haven't gotten into point cloud work and i would love to get some more information.


Sorry, what I meant to say was I'll have them uploaded this week. But in the mean time if you make the lightning HDA editable, dive into PC_TARGET_GEN, you'll find sticky notes that explain how the point cloud targetting works. Dive into initial_state, process_geo and post_process in that order (sop solver template like those posted by pclaes), you'll find the VEX code commented, and some more sticky notes to explain what's happenning! If you have any questions, please let me know:)
Showreel :) ->

View on Vimeo.


#12 Adam Ferestad

Adam Ferestad

    Initiate

  • Members
  • PipPip
  • 185 posts
  • Joined: 24-May 11
  • Location:Ohio
  • Name:Adam Ferestad

Posted 26 June 2011 - 12:59 PM

Ok, thanks. I am looking forward to learning how to do this stuff. My understanding of most of this stuff is still so novice. I am learning fast though. I have found that writing my own tutorials seems to help cement things in my head. I will probably figure out something cool once I get these point clouds down and write one for them.
Tutorials Available for Houdini 11 at AdamFerestad.com:
  • Parametric Table - Introductory modeling/expression tutorial
  • Ripple Interference Pattern - Beginners Modeling/VEX Tutorial
  • Drama Cam - Intermediate Chops tutorial
  • Christmas Lights - Beginner Modeling/Rendering Tutorial
  • Space Ship - Intermediate/Advanced Procedural Modeling




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users