Jump to content

How to make lines from the add sop follow the normals?


Jag80

Recommended Posts

I've been working on some lightning tutorials and they use a scatter node to scatter points on the surface and then use a add sop to create some lines. I have a circular radius that I would like the lightning to shoot from the center outward, but I having trouble with it. I've made the normals shoot off in an outward direction on all sides, but the way the add sop puts down the lines is random. Is there a way to make it more uniform so they are going the direction of the normals?

Lightning.jpg

Link to comment
Share on other sites

Add sop creates a polyline between the points in order, the scatter sop randomizes point order by default hence the messy appearance.

You could do branching lighting with some vex growth, an l-system or shortestpath sop. One approach might be:

 

Edited by nuki
Link to comment
Share on other sites

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...