Jump to content

Deleting particles without velocity « warning - beginner question »


Recommended Posts

Hello good people of Odfore,

 

I've just started delving into Houdini 14, trying stuff, playing... You know how it goes.

I've managed to make a small simulation, based on the color channel and an Attribute Transfer. Nothing fancy, just a rock rolling down a hill. I've attached a popnet to the terrain generate some debris/dust/... based on the color attribute transfer. 

 

The problem I'm having is that the popnet generates particles all over the terrain and only the ones that are affected by the Attribute transfer have velocity. Unfortunately I have had no luck finding how I can delete the particles that have no velocity, or how to generate more or less particles, so I can add some copies. :)

 

So I wonder what if anyone here can find the solution. You probably can, and the solution is probably very simple, but I've just started out so any help would be appreciated.

 

I hope I make sense. I've enclosed the .hipnc-file so you can take a look. Any other pointers you can give me are more than welcome!

 

Thanks!

Falling_Rock_Attrib_Create.hipnc

Link to comment
Share on other sites

Unfortunately I have had no luck finding how I can delete the particles that have no velocity

 

 

In delete SOP > Set Entity to Points > Delete by Expression > Filter Expression

length($VX, $VY, $VZ) == 0

or 

length($VX, $VY, $VZ) < 0.1
Link to comment
Share on other sites

  • 2 years later...

Use a Geometry Wrangle or a POP Wrangle if you're dealing with particles, and use an expression like this:
 

if(len(v@v) < ch("min_speed")) {
    removepoint(0, @ptnum);
}

Or use a SOP Solver in your DOP network to delete the points using any of the SOP-based methods listed above.

  • Like 1
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...