Jump to content
benttoenail

Creating a primitive out of a stream of particles

Recommended Posts

I'm attempting to create a polygon ribbons out of multiple streams of particles emitting from points moving around on a surface.  I've been having a lot of trouble sectioning the streams into separate groups, so that I can use the add node to add polygons down the chain of particles.  I'm not even sure if this is the best way to go about it.

image.thumb.png.cda5a6df269e354fd31e5d219af8d1db.png

I'm using a popnet to create the points moving around the surface of a sphere, which I'm then plugging into another Popnet to emit the streams of particles.

In the 'pop_trailsCreation' popnet, I have my emission type set to points.  

image.png.6d3a2577e48a4621ea8f81343f6f490d.png

 

Does someone have a clue how I can create a polygon ribbon / tube moving down each separate stream of Particles?  I've been trying to separate each stream based on the @id of each source_point, but I've had no luck in achieving that. 

 

Many thanks!!

 

Share this post


Link to post
Share on other sites

Add an attribute to your source points to identify where each particle has come from.

Your first popnet will by default give you an 'id' attribute already, so use add an 'attribute rename' sop to change this to something like 'parent_id' (otherwise your new popnet will overwrite it). Then after the second popnet, use the parent_id attribute in the add sop to connect up those groups of points. Check the attached hip file ;)

To make it a tube, add a polywire sop at the end.

pop_lines.hip

Edited by markingleukc

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

×