Jump to content
Sign in to follow this  
Jag80

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

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×