Jump to content

Delete primitives with death of particles


Ezz

Recommended Posts

Hi Houdini-folks :-)

Im working hard to learn Houdini.

And I have been working trough some of the examples found on this page.

So I have a setup containing a logo-geometry that I want to disolve. To do so

I have conected my primitives to a POP-net. I have set the lifespan of the

particles to 5.

My problem is that when the particles die, my primitives are replaces again wich is

kind logical when I think about it.

So I guess I have to put in a delete-SOP to delete the primitives as the particles die.

I need some help to figur out how to get the information from my particles ( $DEAD ??)

so that I can put them in to a group that delete the primtives acordingly.

I hope it makes sense, but I have attached my hip-file so that you can have a look.

Thank you so much

Erik

disolve.hipnc

Link to comment
Share on other sites

Hey GW.

Thank you very much for your solution :-)

But if you look closer on the primitives when the particles die, there order is changes and

gives it a rather funky look.

So it brings me back to the idea of transferring the particle ID from the POP-network

to drive a group that controls a delete-node. But I dont know if thats the rigth approach

Erik

Link to comment
Share on other sites

What you could try, is to do an ordered sourcing of the points via the prim centers, and then back in SOPs, use a copy sop to stamp that particular primitive onto the particle. You'll need to do the connectivity sop -> partition sop trick as well as to shift the individual primitives to the origin, but I think i should be do-able. Hope you figure it out! I'll try if I get a moment.

Link to comment
Share on other sites

Hey thanks for your effort GW :-)

Still its not exactly what I was planning. There must be a way to

transfer the information from the POP-network to a group-SOP which then controls a delete-SOP.

The $PT from the POP-network could give me what I want. I have created an attribute based on that called $KILLPRIM

But I can not understand how to put the information into a group. I have tried all the attribute_nodes there is, to try and combine

the datas..No luck :-(

AAhh my mind is starting to blow

Erik

Link to comment
Share on other sites

The Primitive SOP is not as flexible as the Copy SOP in that it can't transfer attributes from the second point input.

You can easily work around this in several ways. The most straight forward way is to use your existing Primitive SOP and the point() expression to index in to the particle geometry. It's straightforward as you have a 1:1 relationship between primitives and points.

See your modified example file attached.

I used a more graceful blending out the alpha instead of cutting them right off before deleting them. I also changed the lifetime of the particles back to 100 as you don't need to kill them off. I replicated the same falloff to the alpha as you had in the death variance. See the "point__dissovle_alpha" Point SOP for that expression in the Alpha field.

disolve_sesi_v01.hipnc

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