Jump to content

Creating a primitive out of a stream of particles


benttoenail

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

 

Link to comment
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
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...