Jump to content

particle velocity problem.


Recommended Posts

Hi all,

I 've done particle set-up for fireworks and trying to make motion blur.

I used trail first time and it created strange velocity..

It looked okay in pop network but when I came out to obj network, the velocity start to go crazy..

So, I created attribute to export velocity of particle itself in pop network:

post-3325-1217280952_thumb.jpg

And, I was trying to read that attribute in obj network, and I got error. I need help on this:

post-3325-1217280960_thumb.jpg

Scene file:syndrome_fx_fireworks_002.hip

Thanks.

-j

Edited by Jae Yoo
Link to comment
Share on other sites

your attribute "pv" is declared in POPs. You cannot access "pv" in SOPs using $PVX, $PVY, $PVZ. These are LOCAL variables which mean they are variables that only work within the context that they are created. In order to access this attribute in SOPs you would need to use a point expression, ie point("../popnet1", $ID, "pv", 0)...

Edited by SpencerL
Link to comment
Share on other sites

your attribute "pv" is declared in POPs. You cannot access "pv" in SOPs using $PVX, $PVY, $PVZ. These are LOCAL variables which mean they are variables that only work within the context that they are created. In order to access this attribute in SOPs you would need to use a point expression, ie point("../popnet1", $ID, "pv", 0)...

Hi, SpencerL.

Thanks for replying.

I did what you told me.

I got this strange velocity.

I know that it should work that way but dont, know what it the problem.

post-3325-1217285350_thumb.jpg

Thanks,

p.s scene file is provided up there.

Edited by Jae Yoo
Link to comment
Share on other sites

I'm not sure why you're trying to put the velocity into a separate attribute and then copy it back in the first place. You just need to use the parameters in the Attribute tab of the Copy SOP. Here's my attempt (without rendering). Some of your velocities at certain frames do look off but I think that's coming from your POP network itself.

syndrome_fx_fireworks_002_edw.hip

Link to comment
Share on other sites

  • 3 years later...

I'm not sure why you're trying to put the velocity into a separate attribute and then copy it back in the first place. You just need to use the parameters in the Attribute tab of the Copy SOP. Here's my attempt (without rendering). Some of your velocities at certain frames do look off but I think that's coming from your POP network itself.

Just let you know a workaround I've found when using trail SOP on particles to get a new velocity.

The problem is that the trail SOP is using the point number, not the particle's ID to compute v. Also Houdini recycles that point number when a particle dies by life, hence you'll get that crazy values since $PT is inconsistent.

The workaround I've found is to set a very high lifespan and kill the particles in any other way, in my case using expressions. This will force Houdini to keep the point number, so you can use the trail SOP safely.

So for SideFX guys, would be nice to be able to choose $ID as the trailing attribute, next version... ;)

D.

Edited by Dani F
Link to comment
Share on other sites

There is a match by attribute in the point sop that allows you to calculate velocity from id. But that is only useful to recalculate velocity if you change the particles with a lattice or noise or something like that.

Edited by gonzzzo
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...