Jump to content

Add POPs to group when advected


gpapaioa

Recommended Posts

Hello everyone. Is it possible to add particles to a new group as soon as they are advected e.g. from a volume? I want the particles to react differently as soon as they are advected.

Thank you.

Link to comment
Share on other sites

@gpapaioa This it's for 2d Advect on Gas-limit particles and it works if you change Dimension depending what you have in your scene, how you advecting? ..then you can also  reference min max in from your(field's)center, volumes..endless Possibility ..
 

sfeee.jpg

Link to comment
Share on other sites

I am advecting with a custom vel vol, with popadvectbyvolumes.

I had a thought: whenever a particle is advected, it could pick up an attribute from 0 to 1 (like attribopy in SOPs). And later with a POPwrangle, group the ones with 1. Need to research if this is possible in DOPs.

Link to comment
Share on other sites

inside a sopsolver in your dopnet you could create an object merge to bring in your velocity field and check if the particle is inside the velocity field.

v@vel = volumesamplev(1, 'vel', @P);

you can also reduce it to a float by calculating the length of the vector

f@speed = length(v@vel);

you can then either use that attribute to gradually activate another force or use it to add particles to a group

if(f@speed > 0){
    @group_advected = 1;
}
Edited by bengaet
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...